3 PY_MODULES
= afm.py tfm.py
4 PYC_MODULES
= $(PY_MODULES
:%=%c
)
5 FILES
= mftrace.py GNUmakefile.in \
8 README.texi README.txt ChangeLog \
9 mftrace.spec.in mftrace.spec \
10 $(PY_MODULES
) configure configure.in config.h.in
13 ## retain during override.
20 distdir
=$(NAME
)-$(VERSION
)
22 datadir=@
datadir@
/mftrace
/
23 exec_prefix=@
exec_prefix@
31 WWW_DIR
=hanwen@lilypond.org
:www
/download
/sources
/mftrace
/
37 compile
: mftrace gf2pbm
39 version.texi
: GNUmakefile
40 echo
-e
'@macro mftversion\n$(VERSION)\n@end macro\n' > $@
42 README.txt
: README.texi version.texi
43 makeinfo --no-split
--no-headers
--output
$@
$<
45 README.html
: README.texi version.texi
46 makeinfo --html
--no-split
--no-headers
--output
$@
$<
50 ln
$(FILES
) $(distdir
)
51 tar --owner
=0 --group
=0 -zcf
$(distdir
).
tar.gz
$(distdir
)
54 mftrace.spec
: mftrace.spec.in configure
57 mftrace
: mftrace.py configure
60 configure
: configure.in
64 GNUmakefile
: GNUmakefile.in configure
69 $(PYTHON
) -c
'import py_compile; py_compile.compile ("$<", cfile="$@")'
71 install: mftrace gf2pbm
$(PYC_MODULES
) install-man install-py
72 install -d
$(DESTDIR
)$(bindir)
73 install mftrace
$(DESTDIR
)$(bindir)
74 install gf2pbm
$(EXEEXT
) $(DESTDIR
)$(bindir)/gf2pbm
$(EXEEXT
)
77 install-py
: $(PY_MODULES
) $(PYC_MODULES
)
78 install -d
$(DESTDIR
)$(datadir)
79 install -m644
$^
$(DESTDIR
)$(datadir)
81 install-man
: $(MANPAGES
)
82 install -d
$(DESTDIR
)$(mandir)/man1
83 install -m644
$^
$(DESTDIR
)$(mandir)/man1
/
86 rm $(DESTDIR
)$(bindir)/mftrace
$(DESTDIR
)$(bindir)/gf2pbm
$(EXEEXT
)
87 cd
$(DESTDIR
)$(datadir) && rm $(PY_MODULES
)
88 cd
$(DESTDIR
)$(mandir)/man1
&& rm $(MANPAGES
)
89 -rmdir
$(DESTDIR
)$(bindir)
90 -rmdir
$(DESTDIR
)$(datadir)
91 -rmdir
$(DESTDIR
)$(mandir)/man1
92 -rmdir
$(DESTDIR
)$(mandir)/
93 -rmdir
$(DESTDIR
)$(prefix)
94 -rmdir
$(DESTDIR
)$(exec_prefix)
97 rm -f config.cache config.h config.log config.status GNUmakefile
98 rm -f mftrace gf2pbm
$(PYC_MODULES
)
102 TEST_FONTS
= ecbi0900 logo10
104 $(foreach a
, $(TEST_FONTS
), $(PYTHON
) mftrace.py
--glyphs
65 -V
$(a
) &&)true
109 .
/configure
--prefix=$(HOME
)/usr
/pkg
/mftrace
111 @
$(if
$(shell git diff
), echo
"commit before disting" && false
,true
)
112 if
test -d .git
; then \
113 git tag
-m
'' release
/$(VERSION
) ; \
116 scp
$(distdir
).
tar.gz
$(WWW_DIR
)
117 scp
$< $(WWW_DIR
)/index.html
120 rpmbuild
-tb mftrace-
$(VERSION
).
tar.gz