|
1 | 1 | # $Id: Makefile,v 1.5 2008/02/06 14:05:15 mike Exp $ |
2 | 2 | # |
3 | | -# http://dev.w3.org/buildtools/css3-module-postprocessor/Makefile |
| 3 | +# FIXME: New documentation needed. |
4 | 4 | # |
5 | | -# This is a makefile for generating output using the CSS3 module |
6 | | -# postprocessor. Details about that are here: |
7 | | -# |
8 | | -# http://www.w3.org/Style/Group/css3-src/bin/postprocess |
9 | | -# |
10 | | -# To use this makefile, you need to have the "make" and "curl" |
11 | | -# programs installed. If you are running a Windows/MS-DOS system, |
12 | | -# you can download the "make" and "curl" programs from here: |
13 | | -# |
14 | | -# http://gnuwin32.sourceforge.net/downlinks/make.php |
15 | | -# http://curl.haxx.se/dlwiz/?type=bin&os=Win32&flav=-&ver=2000/XP |
16 | | -# |
17 | | -# You also need to install either a .curlrc (*NIX/*BSD) or _curlrc |
18 | | -# (MS-DOS ) file in your HOME directory, with at minimum the |
19 | | -# following contents: |
20 | | -# |
21 | | -# user = foo:bar |
22 | | -# |
23 | | -# ...where "foo" and "bar" are your W3C username and password. |
24 | | - |
25 | | -SOURCEFILE=Compositing.src.html |
26 | | -OUTPUTFILE=index.html |
27 | | -PROCESSCGI=https://www.w3.org/Style/Group/process.cgi |
28 | | -CURL=curl |
29 | | -CURLFLAGS= |
30 | | - |
31 | | -# if you want to set a publication date other than today's date, |
32 | | -# invoke make like this: "make PUBDATE=2008-03-19" |
33 | | -PUBMSG= |
34 | | -PUBDATE= |
35 | | -USER= |
36 | | -STATUS="ED" |
37 | | - |
38 | | -W3C_CSS_DIR=~/work/W3C/cvs/dev.w3.org/csswg/compositing |
| 5 | + |
| 6 | +SOURCEFILE=Overview.bs |
| 7 | +OUTPUTFILE=Overview.html |
| 8 | +PREPROCESSOR=bikeshed.py |
39 | 9 |
|
40 | | -all: $(OUTPUTFILE) |
| 10 | +all: $(OUTPUTFILE) |
41 | 11 |
|
42 | 12 | $(OUTPUTFILE): $(SOURCEFILE) |
43 | | -ifeq (,$(PUBDATE)) |
44 | | - $(CURL) $(CURLFLAGS) -K ~/.curl-w3.org -F file="@$<" -o "$@" -F group=FX -F output=html -F method=file $(PROCESSCGI) -F status=$(STATUS) |
45 | | -else |
46 | | - $(CURL) $(CURLFLAGS) -K ~/.curl-w3.org -F file="@$<" -o "$@" -F group=FX -F output=html -F method=file $(PROCESSCGI) -F status=$(STATUS) -F date=$(PUBDATE) |
47 | | -endif |
| 13 | + $(PREPROCESSOR) -f spec "$<" |
48 | 14 |
|
49 | | -publish: |
50 | | -ifeq (,$(PUBMSG)) |
51 | | - @echo "Invoke command with a commit message for publication: e.g., make USER=<user-name> PUBMSG=<msg>" |
52 | | -else |
53 | | - $(shell cd $(W3C_CSS_DIR); cvs edit *.html; cvs edit images/*.*;) |
54 | | - cp *.html $(W3C_CSS_DIR)/. |
55 | | - cp ./images/*.* $(W3C_CSS_DIR)/images/. |
56 | | - $(shell cd $(W3C_CSS_DIR); cvs commit -m "$(PUBMSG)";) |
57 | | -endif |
58 | | - |
59 | 15 |
|
0 commit comments