old-website/default.mk.in

21 lines
605 B
Makefile
Raw Normal View History

2002-03-11 15:59:29 -05:00
2005-11-25 01:59:13 -05:00
#DEBUG = 1
2002-03-11 15:39:54 -05:00
OUTPUTS=$(INPUTS:.xml=.html)
XSLTARGS=--param date "'`date -I`'" --param time "'`date +%H:%M:%S`'" \
--param pwd "'`pwd`'" --param root "'$(ROOT)'"
2002-03-11 15:39:54 -05:00
ifdef DEBUG
XSLTARGS += -v
endif
all: $(OUTPUTS)
@for i in $(SUBDIRS) ; do (cd $$i && $(MAKE) && cd ..) ; done
clean-recurse: clean
2003-01-21 14:41:57 -05:00
@for i in $(SUBDIRS) ; do (cd $$i && $(MAKE) clean-recurse && cd ..) ; done
2002-03-11 15:39:54 -05:00
clean:
rm -f *.html
2002-04-15 13:37:12 -04:00
%.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
2002-04-15 12:25:47 -04:00
$(ROOT)/cow/cow $(XSLTARGS) $(ROOT)/cscweb.xsl $< > $@