1 WML_FILES = $(wildcard *.wml)
2 FILES = $(WML_FILES:%.wml=%.html)
4 #DIRS = Termine News Infos Service
5 DIRS = $(shell find . -maxdepth 1 -type d -not -name . -not -name CVS)
7 #ROOT_PREFIX = $(shell perl -MCwd -e '$d = cwd;$d =~ s/^.*src\/?(.*)$/$1/;@f=split (/\//, $d);print "../"x($#f+1);')
8 ROOT_PREFIX = $(shell perl -MCwd -e '$$_ = cwd;s/^.*src\/?//;@f=split /\//;$$n=$$\#f+1;print "../"x $$n;' )
9 #ROOT_PREFIX = $(shell perl -MCwd -e '$d = cwd();')
10 #ROOT_PREFIX = $(shell echo "foo" 'bar \(\)')
13 WML = /usr/bin/wml -n -q
18 IFLAGS = -I. -I$(ROOT_PREFIX)../Styles
22 # ${CC} ${CFLAGS} -c $*.c
25 # $(CC) -E $(CFLAGS) $(_NOOP_) $*.c > $@@
28 $(WML) $(IFLAGS) -o $*.html $*.wml
29 # /usr/bin/wml -n $(IFLAGS) $*.wml| sed 's:"[a-zA-Z0-9_]*\.imgdot-1x1-transp\.gif":"../pix/imgdot-1x1-transp.gif":' > $*.html
32 test -z "$(DIRS)" || for d in "" $(DIRS); do if [ -n "$$d" ]; then (cp Makefile $$d && cd $$d && make all); fi; done
35 rm -f $(FILES) *.imgdot-1x1-transp.gif .depend
36 test -z "$(DIRS)" || for d in "" $(DIRS); do if [ -n "$$d" ]; then (cp Makefile $$d && cd $$d && make clean); fi; done
37 test -z "$(ROOT_PREFIX)" || rm -f Makefile
40 cd $(ROOT_PREFIX).. && make install
43 cd $(ROOT_PREFIX).. && make test
46 $(ROOT_PREFIX)../bin/wmldepend.sh $(IFLAGS) $(WML_FILES) > .depend