summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipng/doc/Makefile.am
blob: 0753c9c460a7acd8ad55e91855b7667da8c22637 (plain)
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
## Makefile.am for the TeX Live subdirectory texk/dvipng/doc/
##
## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
#
## #################################### Documentation
##
info_TEXINFOS = dvipng.texi
dvipng_TEXINFOS = readme.texi install.texi macros.texi dvipng.help

dist_noinst_SCRIPTS = texi2pod.pl

dist_man1_MANS = dvipng.1
dvipng.1: dvipng.texi readme.texi
	$(srcdir)/texi2pod.pl -D man $(srcdir)/dvipng.texi | \
	sed -es/@//g -es/previewlatex/preview-latex/g -es/{}//g > dvipng.pod
	pod2man --center="User commands" --release="$(PACKAGE_STRING)" \
		dvipng.pod > dvipng.1
	rm dvipng.pod

www: dvipng.texi $(dvipng_TEXINFOS)
	$(mkdir_p) www
	$(TEXI2HTML) -split chapter -nosec-nav -subdir html \
	   -I $(srcdir) $(srcdir)/dvipng.texi
	(cd html; for i in *; do \
	   sed -e "s/Jan-A/Jan-\&Aring\;/g" $$i > ../www/$$i; \
	done) 
	cp www/dvipng.html www/index.html
	rm -rf html

dvipng_mono.html: dvipng.texi $(dvipng_TEXINFOS)
	$(TEXI2HTML) --monolithic -nomenu -nosec_nav -o dvipng_mono.html \
		 -I $(srcdir) $(srcdir)/dvipng.texi

distclean-local:
	rm -rf www
	rm -f dvipng_mono.html

if have_gif
install-data-hook:
	cd $(DESTDIR)$(man1dir) && \
	  rm -f dvigif.1 && \
	  $(LN_S) dvipng.1 dvigif.1
uninstall-hook:
	rm -f $(DESTDIR)$(man1dir)/dvigif.1
endif have_gif

## #################################### Maintainer targets
##
am-local: ../INSTALL ../README RELEASE

../INSTALL: install.texi
	-$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
	  -D rawfile --no-headers --no-validate --no-number-sections \
	  -o $@ $<

../README: readme.texi
	-$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
	  -D rawfile --no-headers --no-validate --no-number-sections \
	  -o $@ $<