summaryrefslogtreecommitdiff
path: root/Makefile
blob: 3f3779ec6e8826fed1eead80daca1c128d2d37a0 (plain)
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
38
39
40
41
42
43
44
#!/usr/bin/make

help:
	@echo "supported targets: aspdocs masondocs alldocs perl-modules"
	@echo "                   install-perl-modules install clean"

aspdocs: httemplate/* httemplate/*/* httemplate/*/*/* httemplate/*/*/*/* httemplate/*/*/*/*/*
	rm -rf aspdocs
	cp -pr httemplate aspdocs
	touch aspdocs

masondocs: httemplate/* httemplate/*/* httemplate/*/*/* httemplate/*/*/*/* httemplate/*/*/*/*/*
	rm -rf masondocs
	cp -pr httemplate masondocs
	( cd masondocs; \
	  ../bin/masonize; \
	)
	touch masondocs

alldocs: aspdocs masondocs

FS/Makefile:
	cd FS
	perl Makefile.PL

perl-modules:
	cd FS; \
	[ -e Makefile ] || perl Makefile.PL; \
	make

install-perl-modules: perl-modules
	cd FS; \
	make install

install: install-perl-modules

deploy: install
	/etc/init.d/apache restart

clean:
	rm -rf aspdocs masondocs
	cd FS
	make clean