-
Notifications
You must be signed in to change notification settings - Fork 7
/
GNUmakefile.in
117 lines (92 loc) · 2.75 KB
/
GNUmakefile.in
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# -*-makefile-*-
PY_MODULES= afm.py tfm.py
FILES= mftrace.py GNUmakefile.in \
gf2pbm.c mftrace.1 \
COPYING \
README.texi README.txt ChangeLog \
mftrace.spec.in mftrace.spec \
$(PY_MODULES) configure configure.in config.h.in
CFLAGS = -Wall -O2
## retain during override.
CFLAGS += -I.
srcdir=@srcdir@
VPATH=$(srcdir)
NAME=mftrace
MANPAGES=mftrace.1 gf2pbm.1
VERSION=@VERSION@
distdir=$(NAME)-$(VERSION)
prefix=@prefix@
datadir=@datadir@/mftrace/
exec_prefix=@exec_prefix@
bindir=@bindir@
mandir=@mandir@
PYTHON=@PYTHON@
EXEEXT=@EXEEXT@
## up/download.
[email protected]:www/downloads/sources/mftrace/
[email protected]:www/mftrace/
GIT_MASTER_SITE=git+ssh://[email protected]/hanwen/mftrace.git
all: compile
compile: mftrace gf2pbm
version.texi: GNUmakefile
echo -e '@macro mftversion\n$(VERSION)\n@end macro\n' > $@
README.txt: README.texi version.texi
makeinfo --no-split --no-headers --output $@ $<
README.html: README.texi version.texi
makeinfo --html --no-split --no-headers --output $@ $<
dist: $(FILES)
mkdir $(distdir)
ln $(FILES) $(distdir)
tar --owner=0 --group=0 -zcf $(distdir).tar.gz $(distdir)
rm -rf $(distdir)
mftrace.spec: mftrace.spec.in configure
./config.status
mftrace: mftrace.py configure
./config.status
configure: configure.in
autoconf
./configure
GNUmakefile: GNUmakefile.in configure
./config.status
chmod a-w GNUmakefile
install: mftrace gf2pbm install-man install-py
install -d $(DESTDIR)$(bindir)
install mftrace $(DESTDIR)$(bindir)
install gf2pbm$(EXEEXT) $(DESTDIR)$(bindir)/gf2pbm$(EXEEXT)
install-py: $(PY_MODULES)
install -d $(DESTDIR)$(datadir)
install -m644 $^ $(DESTDIR)$(datadir)
$(PYTHON) -m compileall $(DESTDIR)$(datadir)
install-man: $(MANPAGES)
install -d $(DESTDIR)$(mandir)/man1
install -m644 $^ $(DESTDIR)$(mandir)/man1/
uninstall:
rm $(DESTDIR)$(bindir)/mftrace $(DESTDIR)$(bindir)/gf2pbm$(EXEEXT)
cd $(DESTDIR)$(datadir) && rm $(PY_MODULES)
cd $(DESTDIR)$(mandir)/man1 && rm $(MANPAGES)
-rmdir $(DESTDIR)$(bindir)
-rmdir $(DESTDIR)$(datadir)
-rmdir $(DESTDIR)$(mandir)/man1
-rmdir $(DESTDIR)$(mandir)/
-rmdir $(DESTDIR)$(prefix)
-rmdir $(DESTDIR)$(exec_prefix)
clean:
rm -f config.cache config.h config.log config.status GNUmakefile
rm -f mftrace gf2pbm
rm -f *'~' '#'*
TEST_FONTS= ecbi0900 logo10 cmr11
test:
$(foreach a, $(TEST_FONTS), $(PYTHON) mftrace.py --glyphs 65 -V $(a) &&)true
udist: README.html
autoconf
./configure --prefix=$(HOME)/usr/pkg/mftrace
make dist
@$(if $(shell git diff), echo "commit before disting" && false,true)
if test -d .git ; then \
git tag -m '' release/$(VERSION) ; \
git push $(GIT_MASTER_SITE) tag release/$(VERSION) ; \
fi
scp $(distdir).tar.gz $(FTP_DIR)
scp $< $(WWW_DIR)/index.html
rpm: dist
rpmbuild -tb mftrace-$(VERSION).tar.gz