]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/html/Makefile
Project Objectives added.
[helm.git] / helm / mowgli / home / html / Makefile
1
2 DESTDIR = /projects/mowgli/public_html
3 #DESTDIR = /tmp/mowgli
4
5 XSLTP = xsltproc --param current-date "'`date`'"
6 TEMPLATESROOT = ../templates
7 XMLROOT = ../xml
8 XSLROOT = ../xsl
9
10 PEOPLE = \
11         people/aei/kelley.html \
12         people/aei/schutz.html \
13         people/aei/velden.html \
14         people/aei/wegner.html \
15         people/bologna/asperti.html \
16         people/bologna/guidi.html \
17         people/bologna/padovani.html \
18         people/bologna/sacerdoti.html \
19         people/bologna/schena.html \
20         people/dfki/kohlhase.html \
21         people/dfki/melis.html \
22         people/dfki/siekmann.html \
23         people/inria/amerkad.html \
24         people/inria/bertot.html \
25         people/inria/chicli.html \
26         people/inria/delahaye.html \
27         people/inria/herbelin.html \
28         people/inria/naciri.html \
29         people/inria/pottier.html \
30         people/inria/rideau.html \
31         people/inria/thery.html \
32         people/nijmegen/barendregt.html \
33         people/nijmegen/barreiro.html \
34         people/nijmegen/cohen.html \
35         people/nijmegen/cruz-filipe.html \
36         people/nijmegen/geuvers.html \
37         people/nijmegen/niqui.html \
38         people/nijmegen/stein.html \
39         people/nijmegen/synek.html \
40         people/nijmegen/wiedijk.html \
41         people/trusted-logic/bolignano.html
42
43 PEOPLE_SOURCE = $(PEOPLE:%.html=$(XMLROOT)/%.xml)
44
45 DOCUMENTS = \
46             index.html \
47             home.html \
48             menu.html \
49             project-management.html \
50             project-objectives.html \
51             project-summary.html \
52             consortium.html \
53             project.html \
54             news.html \
55             events.html \
56             deadlines.html \
57             people-list.html \
58             deliverables/distribution/d5a.html \
59             deliverables/distribution/d5b.html \
60             deliverables/information-dissemination-and-exploitation/d7a.html \
61             deliverables/information-dissemination-and-exploitation/d7b.html \
62             deliverables/interfaces/d4a.html \
63             deliverables/interfaces/d4b.html \
64             deliverables/interfaces/d4c.html \
65             deliverables/interfaces/d4d.html \
66             deliverables/interfaces/d4e.html \
67             deliverables/metadata/d3a.html \
68             deliverables/metadata/d3b.html \
69             deliverables/project-management/d0a.html \
70             deliverables/project-management/d0b.html \
71             deliverables/project-management/d0c.html \
72             deliverables/project-management/d0d.html \
73             deliverables/requirement-analysis/d1a.html \
74             deliverables/requirement-analysis/d1b.html \
75             deliverables/requirement-analysis/d1c.html \
76             deliverables/testing-and-validation/d6a.html \
77             deliverables/testing-and-validation/d6b.html \
78             deliverables/testing-and-validation/d6c.html \
79             deliverables/testing-and-validation/d6d.html \
80             deliverables/transformation/d2a.html \
81             deliverables/transformation/d2b.html \
82             deliverables/transformation/d2c.html \
83             deliverables/transformation/d2d.html \
84             deliverables/transformation/d2e.html \
85             deliverables/transformation/d2f.html \
86             deliverables/transformation/d2g.html \
87             members/index.html \
88             members/ml-help-example.txt \
89             software/index.html \
90             sites/aei.html \
91             sites/bologna.html \
92             sites/dfki.html \
93             sites/inria.html \
94             sites/nijmegen.html \
95             sites/trusted-logic.html \
96             publications/index.html \
97             publications/others/category_al.html \
98             publications/others/crimea2001_apss.html \
99             publications/others/cup_s.html \
100             publications/others/cup_s2.html \
101             publications/others/extreme2001_apss.html \
102             publications/others/har_bg.html \
103             publications/others/jep_ws.html \
104             publications/others/jep_wwsw.html \
105             publications/others/jlp2001_scg.html \
106             publications/others/mathml2000_apss.html \
107             publications/others/mscs_gb.html \
108             publications/others/tcs2001_og.html \
109             publications/others/tphols2000_gwz.html \
110             publications/others/tphols2001_apss.html \
111             work-packages/index.html \
112             work-packages/distribution.html \
113             work-packages/information-dissemination-and-exploitation.html \
114             work-packages/interfaces.html \
115             work-packages/metadata.html \
116             work-packages/project-management.html \
117             work-packages/requirement-analysis.html \
118             work-packages/testing-and-validation.html \
119             work-packages/transformation.html \
120             $(PEOPLE)
121
122 all: $(DOCUMENTS)
123
124 home.html: $(TEMPLATESROOT)/home.html.top $(TEMPLATESROOT)/home.html.bot \
125            $(XMLROOT)/news.xml \
126            $(XMLROOT)/other-events.xml \
127            $(XSLROOT)/latest-news.xsl \
128            $(XSLROOT)/sort-events-by-beginning.xsl \
129            $(XSLROOT)/approaching-deadlines.xsl
130         cat $(TEMPLATESROOT)/home.html.top >$@
131         $(XSLTP) $(XSLROOT)/latest-news.xsl $(XMLROOT)/news.xml >>$@
132 #       cat $(TEMPLATESROOT)/home.html.mid >>$@
133 #       $(XSLTP) $(XSLROOT)/sort-events-by-beginning.xsl $(XMLROOT)/other-events.xml | $(XSLTP) $(XSLROOT)/approaching-deadlines.xsl - >>$@
134 #       cat $(TEMPLATESROOT)/home.html.bot >>$@
135         sed s/\@DATE\@/"`date`"/ $(TEMPLATESROOT)/home.html.bot >>$@
136
137 index.html: $(TEMPLATESROOT)/index.html
138         cp $< $@
139
140 members/ml-help-example.txt: $(TEMPLATESROOT)/ml-help-example.txt
141         cp $< $@
142
143 members/index.html: $(XMLROOT)/members-index.xml \
144         $(XSLROOT)/xhtml-content.xsl
145         $(XSLTP) --param path_to_top "'..'" -o $@ $(XSLROOT)/xhtml-content.xsl $<
146
147 software/index.html: $(XMLROOT)/software/index.xml \
148         $(XSLROOT)/xhtml-content.xsl
149         $(XSLTP) --param path_to_top "'..'" -o $@ $(XSLROOT)/xhtml-content.xsl $<
150
151 menu.html: $(TEMPLATESROOT)/menu.html
152         sed s/\@DATE\@/"`date`"/ $< >$@
153
154 project-management.html: $(XMLROOT)/project-management.xml \
155         $(XSLROOT)/xhtml-content.xsl
156         $(XSLTP) --param path_to_top "'.'" -o $@ $(XSLROOT)/xhtml-content.xsl $<
157
158 project-summary.html: $(XMLROOT)/project-summary.xml \
159         $(XSLROOT)/xhtml-content.xsl
160         $(XSLTP) --param path_to_top "'.'" -o $@ $(XSLROOT)/xhtml-content.xsl $<
161
162 project-objectives.html: $(XMLROOT)/project-objectives.xml \
163         $(XSLROOT)/xhtml-content.xsl
164         $(XSLTP) --param path_to_top "'.'" -o $@ $(XSLROOT)/xhtml-content.xsl $<
165
166 people-list.html: $(XSLROOT)/person-entry.xsl $(XSLROOT)/people-list.xsl $(PEOPLE_SOURCE)
167         ( \
168                 echo "<people>" >/tmp/people-list.xml; \
169                 SITES=`cd $(XMLROOT)/sites; ls *.xml | cut -d'.' -f1`; \
170                 for i in $$SITES; \
171                 do \
172                         echo "<from site=\"$$i\">" >>/tmp/people-list.xml; \
173                         SITE_PEOPLE=`cd $(XMLROOT)/people/$$i; ls *.xml | cut -d'.' -f1`; \
174                         for j in $$SITE_PEOPLE; \
175                         do \
176                                 echo "<person file=\"$$j\"/>" >>/tmp/people-list.xml; \
177                         done; \
178                         echo "</from>" >>/tmp/people-list.xml; \
179                 done; \
180                 echo "</people>" >>/tmp/people-list.xml \
181         )
182         $(XSLTP) -o people-list.html $(XSLROOT)/people-list.xsl /tmp/people-list.xml
183 #       rm -rf /tmp/people-list.xml
184
185 consortium.html: $(XMLROOT)/consortium.xml \
186                  $(XSLROOT)/consortium.xsl
187         $(XSLTP) -o $@ $(XSLROOT)/consortium.xsl $<
188
189 project.html: $(XMLROOT)/project.xml \
190               $(XSLROOT)/project.xsl
191         $(XSLTP) -o $@ $(XSLROOT)/project.xsl $<
192
193 news.html: $(XMLROOT)/news.xml \
194            $(XSLROOT)/news.xsl
195         $(XSLTP) -o $@ $(XSLROOT)/news.xsl $<
196
197 events.html: $(XMLROOT)/other-events.xml \
198            $(XSLROOT)/sort-events-by-beginning.xsl \
199            $(XSLROOT)/events.xsl
200         $(XSLTP) $(XSLROOT)/sort-events-by-beginning.xsl $< | $(XSLTP) -o $@ $(XSLROOT)/events.xsl -
201
202 deadlines.html: $(XMLROOT)/other-events.xml \
203            $(XSLROOT)/sort-events-by-deadline.xsl \
204            $(XSLROOT)/deadlines.xsl
205         $(XSLTP) $(XSLROOT)/sort-events-by-deadline.xsl $< | $(XSLTP) -o $@ $(XSLROOT)/deadlines.xsl -
206
207 deliverables/%.html: $(XMLROOT)/deliverables/%.xml \
208               $(XSLROOT)/deliverable.xsl
209         $(XSLTP) -o $@ $(XSLROOT)/deliverable.xsl $<
210
211 sites/%.html: $(XMLROOT)/sites/%.xml \
212               $(XSLROOT)/site.xsl
213         $(XSLTP) -o $@ $(XSLROOT)/site.xsl $<
214
215 people/%.html: $(XMLROOT)/people/%.xml \
216               $(XSLROOT)/person.xsl
217         $(XSLTP) -o $@ $(XSLROOT)/person.xsl $<
218
219 publications/index.html: $(XMLROOT)/publications/index.xml \
220         $(XSLROOT)/publications-index.xsl
221         $(XSLTP) -o $@ $(XSLROOT)/publications-index.xsl $<
222
223 publications/%.html: $(XMLROOT)/publications/%.xml \
224               $(XSLROOT)/publication.xsl
225         $(XSLTP) -o $@ $(XSLROOT)/publication.xsl $<
226
227 work-packages/index.html: $(XMLROOT)/work-packages/index.xml \
228                           $(XSLROOT)/work-packages_index.xsl
229         $(XSLTP) -o $@ $(XSLROOT)/work-packages_index.xsl $<
230         
231 work-packages/%.html: $(XMLROOT)/work-packages/%.xml \
232               $(XSLROOT)/work-package.xsl
233         $(XSLTP) -o $@ $(XSLROOT)/work-package.xsl $<
234
235 clean:
236         rm -f $(DOCUMENTS)
237 .PHONY: clean
238
239 install: $(DOCUMENTS)
240         mkdir -p $(DESTDIR)/html
241         for i in $(dir $(DOCUMENTS)); do \
242                 mkdir -p $(DESTDIR)/html/$$i; \
243         done
244         for i in $(DOCUMENTS); do \
245                 cp $$i $(DESTDIR)/html/$$i; \
246         done
247         mkdir -p $(DESTDIR)/images
248         cp ../images/*.* $(DESTDIR)/images
249         mkdir -p $(DESTDIR)/style
250         cp ../style/*.css $(DESTDIR)/style
251         cp ../htaccess $(DESTDIR)/html/members/.htaccess
252         sed s/menu\\.html/html\\/menu\\.html/ <index.html | sed s/home\\.html/html\\/home\\.html/ >$(DESTDIR)/index.html
253
254 uninstall:
255         rm -rf $(DESTDIR)/*
256
257 $(XSLROOT)/%.xsl : $(XSLROOT)/common.xsl
258 $(XSLROOT)/latest-news.xsl : $(XSLROOT)/news.xsl
259 $(DOCUMENTS) : $(XSLROOT)/common.xsl
260