1 # Note: "make FRAMES=x" works too
5 DESTDIR = /projects/mowgli/public_html
8 HTMLDESTDIRSUFFIX = html_$(FRAMES)_frames
10 HTMLDESTDIR = $(DESTDIR)/$(HTMLDESTDIRSUFFIX)
12 XSLTP = xsltproc --param current-date "'`date`'"
13 TEMPLATESROOT = ../templates
17 RMDOCTYPE = "s/<\\!DOCTYPE[^>]*>//"
19 XHTMLCONTENT = $(XSLROOT)/xhtml-content.xsl
22 people/aei/kelley.html \
23 people/aei/pollney.html \
24 people/aei/schutz.html \
25 people/aei/velden.html \
26 people/aei/wegner.html \
27 people/aei/weyher.html \
28 people/bologna/asperti.html \
29 people/bologna/guidi.html \
30 people/bologna/padovani.html \
31 people/bologna/sacerdoti.html \
32 people/bologna/schena.html \
33 people/dfki/kohlhase.html \
34 people/dfki/melis.html \
35 people/dfki/siekmann.html \
36 people/dfki/moschner.html \
37 people/dfki/goguadze.html \
38 people/dfki/libbrecht.html \
39 people/inria/amerkad.html \
40 people/inria/bertot.html \
41 people/inria/chicli.html \
42 people/inria/delahaye.html \
43 people/inria/herbelin.html \
44 people/inria/naciri.html \
45 people/inria/pottier.html \
46 people/inria/rideau.html \
47 people/inria/thery.html \
48 people/inria/werner.html \
49 people/nijmegen/barendregt.html \
50 people/nijmegen/barreiro.html \
51 people/nijmegen/cohen.html \
52 people/nijmegen/cruz-filipe.html \
53 people/nijmegen/geuvers.html \
54 people/nijmegen/niqui.html \
55 people/nijmegen/stein.html \
56 people/nijmegen/synek.html \
57 people/nijmegen/wiedijk.html \
58 people/trusted-logic/bolignano.html \
59 people/trusted-logic/gimenez.html \
60 people/trusted-logic/loiseaux.html
66 proposal/project-management.html \
67 proposal/project-objectives.html \
68 proposal/project-summary.html \
69 proposal/contribution.html \
70 proposal/innovation.html \
71 proposal/EC-contribution.html \
72 proposal/econ-scient-tech-prospects.html \
73 proposal/project-planning.html \
74 proposal/project-components.html \
82 slides/mowgligroup.html \
83 deliverables/distribution/d5a.html \
84 deliverables/distribution/d5b.html \
85 deliverables/information-dissemination-and-exploitation/d7a.html \
86 deliverables/information-dissemination-and-exploitation/d7b.html \
87 deliverables/interfaces/d4a.html \
88 deliverables/interfaces/d4b.html \
89 deliverables/interfaces/d4c.html \
90 deliverables/interfaces/d4d.html \
91 deliverables/interfaces/d4e.html \
92 deliverables/metadata/d3a.html \
93 deliverables/metadata/d3b.html \
94 deliverables/project-management/d0a.html \
95 deliverables/project-management/d0b.html \
96 deliverables/project-management/d0c.html \
97 deliverables/project-management/d0d.html \
98 deliverables/requirement-analysis/d1a.html \
99 deliverables/requirement-analysis/d1b.html \
100 deliverables/requirement-analysis/d1c.html \
101 deliverables/testing-and-validation/d6a.html \
102 deliverables/testing-and-validation/d6b.html \
103 deliverables/testing-and-validation/d6c.html \
104 deliverables/testing-and-validation/d6d.html \
105 deliverables/transformation/d2a.html \
106 deliverables/transformation/d2b.html \
107 deliverables/transformation/d2c.html \
108 deliverables/transformation/d2d.html \
109 deliverables/transformation/d2e.html \
110 deliverables/transformation/d2f.html \
111 deliverables/transformation/d2g.html \
113 members/ml-help-example.txt \
114 members/kick-off.html \
115 mowgli-events/kick-off.html \
116 software/index.html \
121 sites/nijmegen.html \
122 sites/trusted-logic.html \
123 publications/index.html \
124 publications/mowgli/crimea2002_aw_on_line.html \
125 publications/mowgli/crimea2002_aw.html \
126 publications/others/category_al.html \
127 publications/others/crimea2001_apss.html \
128 publications/others/cup_s.html \
129 publications/others/cup_s2.html \
130 publications/others/extreme2001_apss.html \
131 publications/others/har_bg.html \
132 publications/others/jep_ws.html \
133 publications/others/jep_wwsw.html \
134 publications/others/jlp2001_scg.html \
135 publications/others/mathml2000_apss.html \
136 publications/others/mscs_gb.html \
137 publications/others/tcs2001_og.html \
138 publications/others/tphols2000_gwz.html \
139 publications/others/tphols2001_apss.html \
140 publications/others/w3c_bl98.html \
141 publications/others/cup_hp91.html \
142 publications/others/cup_hp93.html \
143 publications/others/cc.html \
144 work-packages/index.html \
145 work-packages/distribution.html \
146 work-packages/information-dissemination-and-exploitation.html \
147 work-packages/interfaces.html \
148 work-packages/metadata.html \
149 work-packages/project-management.html \
150 work-packages/requirement-analysis.html \
151 work-packages/testing-and-validation.html \
152 work-packages/transformation.html \
157 home.html: $(XMLROOT)/home.xml \
158 $(XMLROOT)/news.xml \
159 $(XMLROOT)/other-events.xml \
160 $(XMLROOT)/mowgli-events.xml \
161 $(XSLROOT)/latest-news.xsl \
162 $(XSLROOT)/approaching-deadlines.xsl \
164 $(XSLTP) -o latest-news.xml $(XSLROOT)/latest-news.xsl $(XMLROOT)/news.xml
165 $(XSLTP) --param today `date +%Y%m%d` -o approaching-deadlines.xml $(XSLROOT)/approaching-deadlines.xsl $(XMLROOT)/other-events.xml
166 $(XSLTP) --param make_header "false()" --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) $(XMLROOT)/home.xml
168 menu.html: $(XMLROOT)/menu.xml $(XHTMLCONTENT)
169 $(XSLTP) --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" --param make_header "false()" --param make_footer "false()" -o $@ $(XHTMLCONTENT) $<
171 index.html: $(TEMPLATESROOT)/index.html
174 members/ml-help-example.txt: $(TEMPLATESROOT)/ml-help-example.txt
177 slides/%.html: $(XMLROOT)/slides/%.xml $(XHTMLCONTENT)
178 $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) $<
180 members/index.html: $(XMLROOT)/members-index.xml \
182 sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
184 members/kick-off.html: $(XMLROOT)/members/kick-off.xml \
185 $(XSLROOT)/minutes.xsl \
187 $(XSLTP) $(XSLROOT)/minutes.xsl $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
189 software/index.html: $(XMLROOT)/software/index.xml \
191 $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) $<
193 proposal/project-management.html: $(XMLROOT)/proposal/project-management.xml \
195 $(XSLROOT)/management.xsl
196 $(XSLTP) $(XSLROOT)/management.xsl $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
198 proposal/project-summary.html: $(XMLROOT)/proposal/project-summary.xml \
200 sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
202 proposal/project-objectives.html: $(XMLROOT)/proposal/project-objectives.xml \
204 sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
206 proposal/contribution.html: $(XMLROOT)/proposal/contribution.xml \
208 sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
210 proposal/innovation.html: $(XMLROOT)/proposal/innovation.xml \
212 sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
214 proposal/EC-contribution.html: $(XMLROOT)/proposal/EC-contribution.xml \
216 sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
218 proposal/econ-scient-tech-prospects.html: $(XMLROOT)/proposal/econ-scient-tech-prospects.xml \
220 sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
222 proposal/project-planning.html: $(XMLROOT)/proposal/project-planning.xml \
224 sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
226 proposal/project-components.html: $(XMLROOT)/proposal/project-components.xml \
228 sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
230 mowgli-events/kick-off.html: $(XMLROOT)/mowgli-events/kick-off.xml \
232 sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
234 people-list.html: $(XMLROOT)/people/index.xml \
235 $(XSLROOT)/people-list.xsl \
237 $(XSLTP) $(XSLROOT)/people-list.xsl $< | $(XSLTP) --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
239 consortium.html: $(XMLROOT)/consortium.xml \
240 $(XSLROOT)/consortium.xsl \
242 $(XSLTP) $(XSLROOT)/consortium.xsl $< | $(XSLTP) --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
244 project.html: $(XMLROOT)/project.xml \
245 $(XSLROOT)/project.xsl \
247 $(XSLTP) $(XSLROOT)/project.xsl $< | $(XSLTP) --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
250 news.html: $(XMLROOT)/news.xml \
251 $(XSLROOT)/news.xsl \
253 $(XSLTP) $(XSLROOT)/news.xsl $< | $(XSLTP) --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
256 other-events.html: $(XMLROOT)/other-events.xml \
257 $(XSLROOT)/events.xsl \
259 $(XSLTP) --param today `date +%Y%m%d` --param events-class "'Other'" $(XSLROOT)/events.xsl $< | $(XSLTP) --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
262 mowgli-events.html: $(XMLROOT)/mowgli-events.xml \
263 $(XSLROOT)/events.xsl \
265 $(XSLTP) --param today `date +%Y%m%d` --param events-class "'MOWGLI'" $(XSLROOT)/events.xsl $< | $(XSLTP) --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
268 deadlines.html: $(XMLROOT)/other-events.xml \
269 $(XSLROOT)/deadlines.xsl \
271 $(XSLTP) --param today `date +%Y%m%d` --param events-class "'Other'" $(XSLROOT)/deadlines.xsl $< | $(XSLTP) --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
274 deliverables/%.html: $(XMLROOT)/deliverables/%.xml \
275 $(XSLROOT)/deliverable.xsl \
277 $(XSLTP) $(XSLROOT)/deliverable.xsl $< | $(XSLTP) --param path_to_top "'../..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
280 sites/%.html: $(XMLROOT)/sites/%.xml \
281 $(XSLROOT)/site.xsl \
283 $(XSLTP) $(XSLROOT)/site.xsl $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
286 people/%.html: $(XMLROOT)/people/%.xml \
287 $(XSLROOT)/person.xsl \
289 $(XSLTP) $(XSLROOT)/person.xsl $< | $(XSLTP) --param path_to_top "'../..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
292 publications/index.html: $(XMLROOT)/publications/index.xml \
293 $(XSLROOT)/publications-index.xsl \
295 $(XSLTP) $(XSLROOT)/publications-index.xsl $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
298 publications/mowgli/%_on_line.html: $(XMLROOT)/publications/mowgli/%_on_line.xml \
300 $(XSLTP) --param path_to_top "'../..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) $<
303 publications/%.html: $(XMLROOT)/publications/%.xml \
304 $(XSLROOT)/publication.xsl \
306 $(XSLTP) $(XSLROOT)/publication.xsl $< | $(XSLTP) --param path_to_top "'../..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
308 work-packages/index.html: $(XMLROOT)/work-packages/index.xml \
309 $(XSLROOT)/work-packages_index.xsl \
311 $(XSLTP) $(XSLROOT)/work-packages_index.xsl $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
314 work-packages/%.html: $(XMLROOT)/work-packages/%.xml \
315 $(XSLROOT)/work-package.xsl \
317 $(XSLTP) $(XSLROOT)/work-package.xsl $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
321 rm -f $(DOCUMENTS) approaching-deadlines.xml latest-news.xml
324 install: $(DOCUMENTS)
325 mkdir -p $(HTMLDESTDIR)
326 for i in $(dir $(DOCUMENTS)); do \
327 mkdir -p $(HTMLDESTDIR)/$$i; \
329 for i in $(DOCUMENTS); do \
330 cp $$i $(HTMLDESTDIR)/$$i; \
332 mkdir -p $(DESTDIR)/images
333 cp ../images/*.* $(DESTDIR)/images
334 mkdir -p $(DESTDIR)/style
335 cp ../style/*.css $(DESTDIR)/style
336 cp ../htaccess $(HTMLDESTDIR)/members/.htaccess
337 mkdir -p $(DESTDIR)/misc/proposal
338 cp ../htaccess $(DESTDIR)/misc/proposal/.htaccess
339 cp ../misc/proposal/*.* $(DESTDIR)/misc/proposal
340 mkdir -p $(DESTDIR)/misc/contract
341 cp ../htaccess $(DESTDIR)/misc/contract/.htaccess
342 cp ../misc/contract/*.* $(DESTDIR)/misc/contract
343 cp ../misc/kick-off/*.* $(DESTDIR)/misc/kick-off
344 cp ../htaccess $(DESTDIR)/misc/kick-off/.htaccess
345 if [ $(FRAMES) = yes ] ; \
347 sed s/menu\\.html/$(HTMLDESTDIRSUFFIX)\\/menu\\.html/ <index.html | \
348 sed s/home\\.html/$(HTMLDESTDIRSUFFIX)\\/home\\.html/ >$(DESTDIR)/index.html ; \
350 cp home.html $(HTMLDESTDIR)/index.html ; \
356 $(XSLROOT)/%.xsl : $(XSLROOT)/common.xsl
357 $(XSLROOT)/latest-news.xsl : $(XSLROOT)/news.xsl
358 $(DOCUMENTS) : $(XSLROOT)/common.xsl