File: Makefile

package info (click to toggle)
logidee-tools 1.2.11
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 576 kB
  • ctags: 68
  • sloc: xml: 1,431; perl: 61; sh: 55; makefile: 46
file content (37 lines) | stat: -rw-r--r-- 934 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id: Makefile 118 2008-02-03 21:41:54Z hertzog $
# Rapha�l Hertzog, Logid�e 2000-2001
# See LICENSE file for the copyright notice
# Copie le Makefile g�n�rique dans tous les r�pertoires XML

REP=doc xml

doc: 

makefiles: 
	@for i in $(REP) ; do \
		echo Creating Makefile in $$i ; \
		cp Makefile.generic $$i/Makefile ; \
		if test -r $$i/Makefile.local ; then \
			perl -pi -e "s|^#include Makefile.local$$|include Makefile.local|" $$i/Makefile ; \
		fi ; \
	done

cleanmakefiles:
	@for i in $(REP) ; do \
		echo Removing Makefile in $$i ; \
		rm -f $$i/Makefile ; \
	done

catalog: catalogue.xml xsl/catalogue.xsl
	test -d catalog || mkdir catalog
	xsltproc --param dir \'$(PWD)\' \
		 --param odir \'$(PWD)/catalog\' \
	    xsl/catalogue.xsl catalogue.xml >catalog/index.html
	cp charte/default/default.css catalog/

%:
	@for i in $(REP) ; do \
		$(MAKE) -C $$i $@ ; \
	done

.PHONY: makefiles cleanmakefiles catalogue select-%