Debian Codegraph @

texk/dvipng/help/Makefile.am

raw
1 ## Makefile.am for the TeX Live subdirectory texk/dvipng/help/
2 ##
3 ## Copyright (C) 2009-2013 Peter Breitenlohner <[email protected]>
4 ## You may freely use, modify and/or distribute this file.
5 ##
6 DVIPNG_HELP = $(top_srcdir)/doc/dvipng.help
7
8 all-local: help-stamp $(DVIPNG_HELP)
9
10 # If dvipng.help is to be rebuilt, this would fail for a read-only source
11 # directory, but rebuilding dvipng.info would equally fail.
12 # Do not even try to rebuild dvipng.help if help-stamp is up to date.
13 $(DVIPNG_HELP): help-stamp
14 help-stamp: ../dvipng$(EXEEXT)
15 if !cross
16 -(cd .. && ./dvipng$(EXEEXT)) | \
17 sed -e's/dvipng.exe/dvipng/' \
18 -e's/ (dvipng) / /' \
19 -e's/ (dvipng (TeX Live)) / (TeX Live) /' \
20 -e's,/lt-dvipng ,/dvipng ,' \
21 -e's,^This is .*/dvipng ,This is ./dvipng ,' \
22 -e's,^Usage: .*/dvipng ,Usage: ./dvipng ,' > dvipng.tmp
23 ( test -r $(DVIPNG_HELP) && diff dvipng.tmp $(DVIPNG_HELP) ) \
24 || cp dvipng.tmp $(DVIPNG_HELP)
25 rm -f dvipng.tmp
26 endif !cross
27 echo timestamp >$@
28
29 DISTCLEANFILES = help-stamp
30