SUBDIRS = based_in = htdocs include $(top_srcdir)/Makefile.common doc_DATA = allpingers.txt allpingers.xml index.html index.html: index.wml allpingers.txt wml -n -o $@ $< #SRCS = $(wildcard pingers/*) #all: allpingers.txt allpingers.xml $(HTMLFILES) SRCS = pingers/* allpingers.txt: $(SRCS) pingers/ ( \ echo "# A L L P I N G E R S' I N D E X"; \ echo "#"; \ echo -n "# Generated: "; \ date --rfc-822; \ echo "#"; \ echo "# This list can be found on the web on http://www.noreply.org/"; \ echo "#"; \ echo "# If anything is wrong/broken/missing please mail the maintainer at"; \ echo "# pingers@palfrader.org"; \ echo; \ for i in `cd pingers && ls -1`; do \ if (echo -n "$$i" | grep -vq '[^a-z0-9]') ; then \ echo "[$$i]"; \ cat pingers/$$i; \ echo ; \ fi; \ done \ ) > $@ allpingers.xml: allpingers.txt $(top_srcdir)/bin/allpingers-ini2xml < $< > $@ clean: rm -f $(doc_DATA)