old-website/default.mk.in

21 lines
605 B
Makefile

#DEBUG = 1
OUTPUTS=$(INPUTS:.xml=.html)
XSLTARGS=--param date "'`date -I`'" --param time "'`date +%H:%M:%S`'" \
--param pwd "'`pwd`'" --param root "'$(ROOT)'"
ifdef DEBUG
XSLTARGS += -v
endif
all: $(OUTPUTS)
@for i in $(SUBDIRS) ; do (cd $$i && $(MAKE) && cd ..) ; done
clean-recurse: clean
@for i in $(SUBDIRS) ; do (cd $$i && $(MAKE) clean-recurse && cd ..) ; done
clean:
rm -f *.html
%.html: %.xml $(ROOT)/csc.dtd $(ROOT)/cscweb.xsl $(ROOT)/events.xml $(ROOT)/news.xml $(ROOT)/menu.xml $(ROOT)/default.mk directory.xml $(ROOT)/cow/cow
$(ROOT)/cow/cow $(XSLTARGS) $(ROOT)/cscweb.xsl $< > $@