1 WML_FILES = $(wildcard *.wml)
2 FILES = $(WML_FILES:%.wml=%.html)
3 SFILES = $(WML_FILES:%.wml=%.shtml)
4 PFILES = $(WML_FILES:%.wml=%.php3)
5 MLOCAL = $(wildcard Makefile.local)
8 WML = /usr/bin/wml -n -q
13 DIRS = $(shell find . -maxdepth 1 -type d -not -name . -not -name CVS)
15 ROOT_PREFIX = $(shell perl -MCwd -e '$$_ = cwd;s/^.*src\/?//;@f=split /\//;$$n=$$\#f+1;print "../"x $$n;' )
17 IFLAGS = -I. -I$(ROOT_PREFIX)../Styles
22 $(WML) $(IFLAGS) $*.wml| sed 's:"\([a-zA-Z0-9_\.-]*\.\)\?imgdot-1x1-transp\(-ffffff\)\?\.gif":"$(ROOT_PREFIX)gifs/imgdot-1x1-transp.gif":' > $*.html
23 $(ROOT_PREFIX)../bin/fixsuffix $*.html
26 test -z "$(DIRS)" || for d in "" $(DIRS); do if [ -n "$$d" ]; then (cp Makefile $$d && make -C $$d all); fi; done
31 -rm -f $(FILES) $(SFILES) $(PFILES) .depend *.imgdot-1x1-transp.gif imgdot-1x1-transp.gif imgdot-1x1-transp-ffffff.gif
33 test -z "$(DIRS)" || for d in "" $(DIRS); do if [ -n "$$d" ]; then (cp Makefile $$d && make -C $$d clean); fi; done
34 test -z "$(ROOT_PREFIX)" || rm -f Makefile
37 make -C $(ROOT_PREFIX).. install
40 make -C $(ROOT_PREFIX).. test
43 $(ROOT_PREFIX)../bin/wmldepend.sh $(IFLAGS) $(WML_FILES) > .depend
47 test -z "$(DIRS)" || for d in "" $(DIRS); do if [ -n "$$d" ]; then (cp Makefile $$d && make -C $$d rdepend); fi; done
52 include Makefile.local