## Process this file with automake to produce Makefile.in
# $Id: Makefile.am,v 1.36 2005/10/20 04:18:58 dm Exp $

$(PROGRAMS): $(LDEPS)

LYNX = lynx
SUBDIRS = libasync asmtpd util local doc etc

libexec_SCRIPTS = avenger
sample_DATA = INSTALL INSTALL.html

avenger: $(srcdir)/avenger.in  $(top_builddir)/config.status $(BUILT_SOURCES)
	cd $(top_builddir) \
	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
	chmod +x $@

.PHONY: fmt-install
fmt-install:
	$(LYNX) -dump $(srcdir)/INSTALL.html \
	    | perl -pe 'exit if /^References$$/;' \
		-e 'print "\n" if (/^\s+(\d+\.|\*\s|\+\s)/' \
	        -e  ' && !$$pre);' \
		-e 'if (/^\S/ && !$$pre) { $$pre = 1; print "\n"; }' \
		-e 'elsif (/^\s/ && $$pre) { $$pre = 0; print "\n"; }' \
		-e 's/\[\d+\]//g; s/^(\S)/\t\t$$1/;' > $(srcdir)/INSTALL
	@echo Warning: you probably have to tidy up INSTALL by hand now

uninstall-hook:
	-rmdir $(DESTDIR)/$(sampledir)

CLEANFILES = core *.core *~
DISTCLEANFILES = autom4te*.cache config.status config.log avenger

EXTRA_DIST = .cvsignore avenger.in INSTALL.html
MAINTAINERCLEANFILES = aclocal.m4 install-sh mkinstalldirs \
	missing configure config.guess config.sub config.h.in \
	ltconfig ltmain.sh COPYING INSTALL Makefile.in stamp-h.in


syntax highlighted by Code2HTML, v. 0.9.1