# $Id: Makefile,v 1.3 2007-11-24 10:41:10 mike Exp $ # makefile for generating output using CSS3 module postprocessor # http://www.w3.org/Style/Group/css3-src/bin/postprocess # To use this, you need to have a .curlrc (*NIX/*BSD) or _curlrc # (MS Windows) file in your HOME directory, with at minimum the # following # contents: # user = foo:bar # ...where "foo" and "bar" are your W3C username and password. SOURCEFILE=Overview.src.html OUTPUTFILE=Overview.html PROCESSCGI=http://cgi.w3.org/member-bin/process.cgi CURL=curl CURLFLAGS= # if you want to set a publication date other than today's date, # invoke make like this: "make PUBDATE=2008-03-19" PUBDATE= all: $(OUTPUTFILE) %.html: %.src.html ifeq (,$(PUBDATE)) $(CURL) $(CURLFLAGS) -F file=@$< -o $@ -F group=none -F output=html -F method=file $(PROCESSCGI) else $(CURL) $(CURLFLAGS) -F file=@$< -o $@ -F group=none -F output=html -F method=file $(PROCESSCGI) -F date=$(PUBDATE) endif