-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (46 loc) · 1.81 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
include config.mk
DIRS=man po src
DISTDIRS=man
.PHONY : all ralcalc clean install uninstall dist distclean sign copy
all : ralcalc
ralcalc :
for d in ${DIRS}; do $(MAKE) -C $${d}; done
clean :
for d in ${DIRS}; do $(MAKE) -C $${d} clean; done
install : ralcalc
@for d in ${DIRS}; do $(MAKE) -C $${d} install; done
uninstall :
@for d in ${DIRS}; do $(MAKE) -C $${d} uninstall; done
dist : clean
@for d in ${DISTDIRS}; do $(MAKE) -C $${d} dist; done
mkdir -p dist/ralcalc-${VERSION}
cp -r man po src COPYING Makefile ChangeLog config.mk readme.txt dist/ralcalc-${VERSION}/
cd dist; tar -zcf ralcalc-${VERSION}.tar.gz ralcalc-${VERSION}/
$(XSLTPROC) $(DB_HTML_XSL) man/ralcalc.1.xml > dist/ralcalc.html
@for c in ${MANCOUNTRIES}; do \
$(XSLTPROC) $(DB_HTML_XSL) man/ralcalc-$${c}.1.xml > dist/ralcalc-$${c}.html; \
done
distclean : clean
@for d in ${DISTDIRS}; do $(MAKE) -C $${d} distclean; done
-rm -rf dist/
sign : dist
cd dist; gpg --detach-sign -a ralcalc-${VERSION}.tar.gz
copy : sign
cd dist; scp ralcalc-${VERSION}.tar.gz ralcalc-${VERSION}.tar.gz.asc atchoo:atchoo.org/tools/ralcalc/files/
cd dist; scp *.html atchoo:atchoo.org/tools/ralcalc/man/
pottar : distclean
mkdir -p dist/ralcalc-pot/
for a in $$(ls po/*.po); do cp $${a} dist/ralcalc-pot/ralcalc-$$(basename $${a}); done
cp po/ralcalc.pot dist/ralcalc-pot/
cd dist; tar -zcf ralcalc-pot.tar.gz ralcalc-pot
mkdir -p dist/ralcalc-man-pot/
/usr/bin/xml2po -o dist/ralcalc-man-pot/ralcalc-man-1.pot man/ralcalc.1.xml
for c in ${MANCOUNTRIES}; do \
/usr/bin/xml2po -o dist/ralcalc-man-pot/ralcalc-man-1-$${c}.po man/ralcalc-$${c}.1.xml; \
done
cd dist; tar -zcf ralcalc-man-pot.tar.gz ralcalc-man-pot
test : all
make -C src test
lcov : all
lcov --capture --directory src --output-file coverage.info
genhtml coverage.info --output-directory out