## Process this file with Automake to produce Makefile.in

AUTOMAKE_OPTIONS = dist-shar

SUFFIXES = .pod .1 .html .txt

POD = stowES.pod

MAN = $(POD:.pod=.1)
TXT = $(MAN:.1=.txt)
HTML = $(POD:.pod=.html)

CLEANFILES = $(MAN) $(HTML) $(TXT) *-dircache *-itemcache stowES $(POD)

# what should go into the distribution
EXTRA_DIST= debian/[^C]*

bin_SCRIPTS = stowES

pkgdatadir = $(datadir)/doc/stowES
pkgdata_DATA = $(HTML) $(TXT) $(POD) README NEWS
man_MANS = $(MAN)

all-local: man html txt

%.1: %.pod
	@POD2MAN@ --center="stowES" --release="@VERSION@" $< > $@

%.txt: %.1
	@NROFF@ -man -Tlp $< > $@

%.html: %.pod
	@POD2HTML@ --infile=$< --outfile=$@ --noindex -title=$* \
	  --htmlroot=. --podpath=.

man: $(MAN)

html: $(HTML)

txt: $(TXT)

deb: clean
	dpkg-buildpackage -rfakeroot -uc -us

#clean:
#	-[ -d debian ] && fakeroot debian/rules clean


syntax highlighted by Code2HTML, v. 0.9.1