Debian Codegraph @

texk/dvipng/doc/Makefile.am

raw
1 ## Makefile.am for the TeX Live subdirectory texk/dvipng/doc/
2 ##
3 ## Copyright (C) 2009-2015 Peter Breitenlohner <[email protected]>
4 ## You may freely use, modify and/or distribute this file.
5 #
6 info_TEXINFOS = \
7 dvipng.texi
8 dvipng_TEXINFOS = \
9 dvipng.help \
10 install.texi \
11 macros.texi \
12 readme.texi
13
14 BUILT_SOURCES = doc-stamp
15
16 doc-stamp:
17 if MAINTAINER_MODE
18 ## Check that the .texi files here are copies of those in ../$(DVIPNG_TREE)/.
19 @for f in dvipng install macros readme; do \
20 f1="$(top_srcdir)/$(DVIPNG_TREE)/$$f.texi"; \
21 f2="$(srcdir)/$$f.texi"; \
22 echo "diff '$$f1' '$$f2'"; \
23 if diff "$$f1" "$$f2"; then :; \
24 else \
25 echo "cp -p '$$f1' '$$f2'"; \
26 cp -p "$$f1" "$$f2"; \
27 fi; \
28 done
29 endif MAINTAINER_MODE
30 echo timestamp >$@
31
32 dist_noinst_SCRIPTS = texi2pod.pl
33
34 dist_man1_MANS = dvipng.1
35 dvipng.1: dvipng.texi readme.texi
36 $(srcdir)/texi2pod.pl -D man $(srcdir)/dvipng.texi | \
37 sed -es/@//g -es/previewlatex/preview-latex/g -es/{}//g > dvipng.pod
38 pod2man --center="User commands" --release="$(PACKAGE_STRING)" \
39 dvipng.pod > dvipng.1
40 rm dvipng.pod
41
42 # Symlinks within $(man1dir): FILE:LINK indicates LINK.1->FILE.1
43 man1_links = dvipng:dvigif
44
45 include $(top_srcdir)/../../am/man1_links.am
46
47 if have_gif
48 install-data-hook: install-man1-links
49 uninstall-hook: uninstall-man1-links
50 endif have_gif
51
52 DISTCLEANFILES = doc-stamp
53