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 \(\)')
12 IFLAGS = -I. -I$(ROOT_PREFIX)../Styles
16 # ${CC} ${CFLAGS} -c $*.c
19 # $(CC) -E $(CFLAGS) $(_NOOP_) $*.c > $@@
22 /usr/bin/wml -n $(IFLAGS) -o $*.html $*.wml
23 # /usr/bin/wml -n $(IFLAGS) $*.wml| sed 's:"[a-zA-Z0-9_]*\.imgdot-1x1-transp\.gif":"../pix/imgdot-1x1-transp.gif":' > $*.html
26 test -z "$(DIRS)" || for d in "" $(DIRS); do if [ -n "$$d" ]; then (cp Makefile $$d && cd $$d && make all); fi; done
29 rm -f $(FILES) *.imgdot-1x1-transp.gif .depend
30 test -z "$(DIRS)" || for d in "" $(DIRS); do if [ -n "$$d" ]; then (cp Makefile $$d && cd $$d && make clean); fi; done
31 test -z "$(ROOT_PREFIX)" || rm -f Makefile
34 cd $(ROOT_PREFIX).. && make install
37 cd $(ROOT_PREFIX).. && make test
40 $(ROOT_PREFIX)../bin/wmldepend.sh $(IFLAGS) $(WML_FILES) > .depend