1## Process this file with Automake to produce Makefile.in
2
3AUTOMAKE_OPTIONS = dist-shar
4
5SUFFIXES = .pod .1 .html .txt
6
7POD = stowES.pod
8
9MAN = $(POD:.pod=.1)
10TXT = $(MAN:.1=.txt)
11HTML = $(POD:.pod=.html)
12
13CLEANFILES = $(MAN) $(HTML) $(TXT) *-dircache *-itemcache stowES $(POD)
14
15# what should go into the distribution
16EXTRA_DIST= debian/[^C]*
17
18bin_SCRIPTS = stowES
19
20pkgdatadir = $(datadir)/doc/stowES
21pkgdata_DATA = $(HTML) $(TXT) $(POD) README NEWS
22man_MANS = $(MAN)
23
24all-local: man html txt
25
26%.1: %.pod
27	@POD2MAN@ --center="stowES" --release="@VERSION@" $< > $@
28
29%.txt: %.1
30	@NROFF@ -man -Tlp $< > $@
31
32%.html: %.pod
33	@POD2HTML@ --infile=$< --outfile=$@ --noindex -title=$* \
34	  --htmlroot=. --podpath=.
35
36man: $(MAN)
37
38html: $(HTML)
39
40txt: $(TXT)
41
42deb: clean
43	dpkg-buildpackage -rfakeroot -uc -us
44
45#clean:
46#	-[ -d debian ] && fakeroot debian/rules clean
47