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 MLOCAL = $(wildcard Makefile.local)
20 IFLAGS = -I. -I$(ROOT_PREFIX)../Styles
24 # ${CC} ${CFLAGS} -c $*.c
27 # $(CC) -E $(CFLAGS) $(_NOOP_) $*.c > $@@
30 $(WML) $(IFLAGS) -o $*.html $*.wml
31 # /usr/bin/wml -n $(IFLAGS) $*.wml| sed 's:"[a-zA-Z0-9_]*\.imgdot-1x1-transp\.gif":"../pix/imgdot-1x1-transp.gif":' > $*.html
32 $(ROOT_PREFIX)../bin/fixsuffix $*.html
35 test -z "$(DIRS)" || for d in "" $(DIRS); do if [ -n "$$d" ]; then (cp Makefile $$d && cd $$d && make all); fi; done
38 rm -f $(FILES) *.imgdot-1x1-transp.gif .depend
39 test -z "$(DIRS)" || for d in "" $(DIRS); do if [ -n "$$d" ]; then (cp Makefile $$d && cd $$d && make clean); fi; done
40 test -z "$(ROOT_PREFIX)" || rm -f Makefile
43 cd $(ROOT_PREFIX).. && make install
46 cd $(ROOT_PREFIX).. && make test
49 $(ROOT_PREFIX)../bin/wmldepend.sh $(IFLAGS) $(WML_FILES) > .depend
54 include Makefile.local