]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/html/Makefile
805650404d4b0e5f2364bc5216b3e74dec636886
[helm.git] / helm / mowgli / home / html / Makefile
1 # Note: "make FRAMES=x" works too
2 FRAMES = yes
3 #FRAMES = no
4
5 DESTDIR = /projects/mowgli/public_html
6 #DESTDIR = /tmp/mowgli
7
8 HTMLDESTDIRSUFFIX = html_$(FRAMES)_frames
9
10 HTMLDESTDIR = $(DESTDIR)/$(HTMLDESTDIRSUFFIX)
11
12 XSLTP = xsltproc --param current-date "'`date`'"
13 TEMPLATESROOT = ../templates
14 XMLROOT = ../xml
15 XSLROOT = ../xsl
16
17 RMDOCTYPE = "s/<\\!DOCTYPE[^>]*>//"
18
19 XHTMLCONTENT = $(XSLROOT)/xhtml-content.xsl
20
21 PEOPLE = \
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
61
62 DOCUMENTS = \
63             index.html \
64             home.html \
65             menu.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 \
75             consortium.html \
76             project.html \
77             news.html \
78             other-events.html \
79             mowgli-events.html \
80             deadlines.html \
81             people-list.html \
82             deliverables/distribution/d5a.html \
83             deliverables/distribution/d5b.html \
84             deliverables/information-dissemination-and-exploitation/d7a.html \
85             deliverables/information-dissemination-and-exploitation/d7b.html \
86             deliverables/interfaces/d4a.html \
87             deliverables/interfaces/d4b.html \
88             deliverables/interfaces/d4c.html \
89             deliverables/interfaces/d4d.html \
90             deliverables/interfaces/d4e.html \
91             deliverables/metadata/d3a.html \
92             deliverables/metadata/d3b.html \
93             deliverables/project-management/d0a.html \
94             deliverables/project-management/d0b.html \
95             deliverables/project-management/d0c.html \
96             deliverables/project-management/d0d.html \
97             deliverables/requirement-analysis/d1a.html \
98             deliverables/requirement-analysis/d1b.html \
99             deliverables/requirement-analysis/d1c.html \
100             deliverables/testing-and-validation/d6a.html \
101             deliverables/testing-and-validation/d6b.html \
102             deliverables/testing-and-validation/d6c.html \
103             deliverables/testing-and-validation/d6d.html \
104             deliverables/transformation/d2a.html \
105             deliverables/transformation/d2b.html \
106             deliverables/transformation/d2c.html \
107             deliverables/transformation/d2d.html \
108             deliverables/transformation/d2e.html \
109             deliverables/transformation/d2f.html \
110             deliverables/transformation/d2g.html \
111             members/index.html \
112             members/ml-help-example.txt \
113             members/kick-off.html \
114             mowgli-events/kick-off.html \
115             software/index.html \
116             sites/aei.html \
117             sites/bologna.html \
118             sites/dfki.html \
119             sites/inria.html \
120             sites/nijmegen.html \
121             sites/trusted-logic.html \
122             publications/index.html \
123             publications/mowgli/crimea2002_aw_on_line.html \
124             publications/mowgli/crimea2002_aw.html \
125             publications/others/category_al.html \
126             publications/others/crimea2001_apss.html \
127             publications/others/cup_s.html \
128             publications/others/cup_s2.html \
129             publications/others/extreme2001_apss.html \
130             publications/others/har_bg.html \
131             publications/others/jep_ws.html \
132             publications/others/jep_wwsw.html \
133             publications/others/jlp2001_scg.html \
134             publications/others/mathml2000_apss.html \
135             publications/others/mscs_gb.html \
136             publications/others/tcs2001_og.html \
137             publications/others/tphols2000_gwz.html \
138             publications/others/tphols2001_apss.html \
139             publications/others/w3c_bl98.html \
140             publications/others/cup_hp91.html \
141             publications/others/cup_hp93.html \
142             publications/others/cc.html \
143             work-packages/index.html \
144             work-packages/distribution.html \
145             work-packages/information-dissemination-and-exploitation.html \
146             work-packages/interfaces.html \
147             work-packages/metadata.html \
148             work-packages/project-management.html \
149             work-packages/requirement-analysis.html \
150             work-packages/testing-and-validation.html \
151             work-packages/transformation.html \
152             $(PEOPLE)
153
154 all: $(DOCUMENTS)
155
156 home.html: $(XMLROOT)/home.xml \
157            $(XMLROOT)/news.xml \
158            $(XMLROOT)/other-events.xml \
159            $(XMLROOT)/mowgli-events.xml \
160            $(XSLROOT)/latest-news.xsl \
161            $(XSLROOT)/approaching-deadlines.xsl \
162            $(XHTMLCONTENT)
163         $(XSLTP) -o latest-news.xml $(XSLROOT)/latest-news.xsl $(XMLROOT)/news.xml
164         $(XSLTP) --param today `date +%Y%m%d` -o approaching-deadlines.xml $(XSLROOT)/approaching-deadlines.xsl $(XMLROOT)/other-events.xml
165         $(XSLTP) --param make_header "false()" --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) $(XMLROOT)/home.xml
166
167 menu.html: $(XMLROOT)/menu.xml $(XHTMLCONTENT)
168         $(XSLTP) --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" --param make_header "false()" --param make_footer "false()" -o $@ $(XHTMLCONTENT) $<
169
170 index.html: $(TEMPLATESROOT)/index.html
171         cp $< $@
172
173 members/ml-help-example.txt: $(TEMPLATESROOT)/ml-help-example.txt
174         cp $< $@
175
176 members/index.html: $(XMLROOT)/members-index.xml \
177                     $(XHTMLCONTENT)
178         sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
179
180 members/kick-off.html: $(XMLROOT)/members/kick-off.xml \
181                     $(XSLROOT)/minutes.xsl \
182                     $(XHTMLCONTENT)
183         $(XSLTP) $(XSLROOT)/minutes.xsl $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
184
185 software/index.html: $(XMLROOT)/software/index.xml \
186                      $(XHTMLCONTENT)
187         $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) $<
188
189 proposal/project-management.html: $(XMLROOT)/proposal/project-management.xml \
190                   $(XHTMLCONTENT) \
191                   $(XSLROOT)/management.xsl
192         $(XSLTP) $(XSLROOT)/management.xsl $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
193
194 proposal/project-summary.html: $(XMLROOT)/proposal/project-summary.xml \
195                       $(XHTMLCONTENT)
196         sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
197
198 proposal/project-objectives.html: $(XMLROOT)/proposal/project-objectives.xml \
199                          $(XHTMLCONTENT)
200         sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
201
202 proposal/contribution.html: $(XMLROOT)/proposal/contribution.xml \
203                          $(XHTMLCONTENT)
204         sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
205
206 proposal/innovation.html: $(XMLROOT)/proposal/innovation.xml \
207                          $(XHTMLCONTENT)
208         sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
209
210 proposal/EC-contribution.html: $(XMLROOT)/proposal/EC-contribution.xml \
211                          $(XHTMLCONTENT)
212         sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
213
214 proposal/econ-scient-tech-prospects.html: $(XMLROOT)/proposal/econ-scient-tech-prospects.xml \
215                          $(XHTMLCONTENT)
216         sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
217
218 proposal/project-planning.html: $(XMLROOT)/proposal/project-planning.xml \
219                          $(XHTMLCONTENT)
220         sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
221
222 proposal/project-components.html: $(XMLROOT)/proposal/project-components.xml \
223                          $(XHTMLCONTENT)
224         sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
225
226 mowgli-events/kick-off.html: $(XMLROOT)/mowgli-events/kick-off.xml \
227                              $(XHTMLCONTENT)
228         sed $(RMDOCTYPE) $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
229
230 people-list.html: $(XMLROOT)/people/index.xml \
231                   $(XSLROOT)/people-list.xsl \
232                   $(XHTMLCONTENT) 
233         $(XSLTP) $(XSLROOT)/people-list.xsl $< | $(XSLTP) --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
234
235 consortium.html: $(XMLROOT)/consortium.xml \
236                  $(XSLROOT)/consortium.xsl \
237                  $(XHTMLCONTENT) 
238         $(XSLTP) $(XSLROOT)/consortium.xsl $< | $(XSLTP) --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
239
240 project.html: $(XMLROOT)/project.xml \
241               $(XSLROOT)/project.xsl \
242               $(XHTMLCONTENT) 
243         $(XSLTP) $(XSLROOT)/project.xsl $< | $(XSLTP) --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
244
245
246 news.html: $(XMLROOT)/news.xml \
247            $(XSLROOT)/news.xsl \
248            $(XHTMLCONTENT) 
249         $(XSLTP) $(XSLROOT)/news.xsl $< | $(XSLTP) --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
250
251
252 other-events.html: $(XMLROOT)/other-events.xml \
253                    $(XSLROOT)/events.xsl \
254                    $(XHTMLCONTENT) 
255         $(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) -
256
257
258 mowgli-events.html: $(XMLROOT)/mowgli-events.xml \
259                     $(XSLROOT)/events.xsl \
260                     $(XHTMLCONTENT) 
261         $(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) -
262
263
264 deadlines.html: $(XMLROOT)/other-events.xml \
265                 $(XSLROOT)/deadlines.xsl \
266                 $(XHTMLCONTENT) 
267         $(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) -
268
269
270 deliverables/%.html: $(XMLROOT)/deliverables/%.xml \
271                      $(XSLROOT)/deliverable.xsl \
272                      $(XHTMLCONTENT) 
273         $(XSLTP) $(XSLROOT)/deliverable.xsl $< | $(XSLTP) --param path_to_top "'../..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
274
275
276 sites/%.html: $(XMLROOT)/sites/%.xml \
277               $(XSLROOT)/site.xsl \
278               $(XHTMLCONTENT) 
279         $(XSLTP) $(XSLROOT)/site.xsl $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
280
281
282 people/%.html: $(XMLROOT)/people/%.xml \
283                $(XSLROOT)/person.xsl \
284                $(XHTMLCONTENT) 
285         $(XSLTP) $(XSLROOT)/person.xsl $< | $(XSLTP) --param path_to_top "'../..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
286
287
288 publications/index.html: $(XMLROOT)/publications/index.xml \
289                          $(XSLROOT)/publications-index.xsl \
290                          $(XHTMLCONTENT) 
291         $(XSLTP) $(XSLROOT)/publications-index.xsl $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
292
293
294 publications/mowgli/%_on_line.html: $(XMLROOT)/publications/mowgli/%_on_line.xml \
295                      $(XHTMLCONTENT) 
296         $(XSLTP) --param path_to_top "'../..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) $<
297
298
299 publications/%.html: $(XMLROOT)/publications/%.xml \
300                      $(XSLROOT)/publication.xsl \
301                      $(XHTMLCONTENT) 
302         $(XSLTP) $(XSLROOT)/publication.xsl $< | $(XSLTP) --param path_to_top "'../..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
303
304 work-packages/index.html: $(XMLROOT)/work-packages/index.xml \
305                           $(XSLROOT)/work-packages_index.xsl \
306                           $(XHTMLCONTENT) 
307         $(XSLTP) $(XSLROOT)/work-packages_index.xsl $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
308
309         
310 work-packages/%.html: $(XMLROOT)/work-packages/%.xml \
311                       $(XSLROOT)/work-package.xsl \
312                       $(XHTMLCONTENT) 
313         $(XSLTP) $(XSLROOT)/work-package.xsl $< | $(XSLTP) --param path_to_top "'..'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) -
314
315
316 clean:
317         rm -f $(DOCUMENTS) approaching-deadlines.xml latest-news.xml
318 .PHONY: clean
319
320 install: $(DOCUMENTS)
321         mkdir -p $(HTMLDESTDIR)
322         for i in $(dir $(DOCUMENTS)); do \
323                 mkdir -p $(HTMLDESTDIR)/$$i; \
324         done
325         for i in $(DOCUMENTS); do \
326                 cp $$i $(HTMLDESTDIR)/$$i; \
327         done
328         mkdir -p $(DESTDIR)/images
329         cp ../images/*.* $(DESTDIR)/images
330         mkdir -p $(DESTDIR)/style
331         cp ../style/*.css $(DESTDIR)/style
332         cp ../htaccess $(HTMLDESTDIR)/members/.htaccess
333         mkdir -p $(DESTDIR)/misc/proposal
334         cp ../htaccess $(DESTDIR)/misc/proposal/.htaccess
335         cp ../misc/proposal/*.* $(DESTDIR)/misc/proposal
336         mkdir -p $(DESTDIR)/misc/contract
337         cp ../htaccess $(DESTDIR)/misc/contract/.htaccess
338         cp ../misc/contract/*.* $(DESTDIR)/misc/contract
339         cp ../misc/kick-off/*.* $(DESTDIR)/misc/kick-off
340         cp ../htaccess $(DESTDIR)/misc/kick-off/.htaccess
341         if [ $(FRAMES) = yes ] ; \
342         then \
343          sed s/menu\\.html/$(HTMLDESTDIRSUFFIX)\\/menu\\.html/ <index.html | \
344           sed s/home\\.html/$(HTMLDESTDIRSUFFIX)\\/home\\.html/ >$(DESTDIR)/index.html ; \
345          else \
346           cp home.html $(HTMLDESTDIR)/index.html ; \
347         fi
348
349 uninstall:
350         rm -rf $(DESTDIR)/*
351
352 $(XSLROOT)/%.xsl : $(XSLROOT)/common.xsl
353 $(XSLROOT)/latest-news.xsl : $(XSLROOT)/news.xsl
354 $(DOCUMENTS) : $(XSLROOT)/common.xsl
355