summaryrefslogtreecommitdiff
path: root/web/allpingers/Makefile.am
blob: d76f5e455eafd7ee6d033219258c5fd79c5f248f (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
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)