7edc5aa13a1c3d70db3c20c97f8a6a3e33b885ad
[freeside.git] / Makefile
1 #!/usr/bin/make
2
3 help:
4         @echo "supported targets: aspdocs masondocs alldocs perl-modules"
5         @echo "                   install-perl-modules install clean"
6
7 aspdocs: httemplate/* httemplate/*/* httemplate/*/*/* httemplate/*/*/*/* httemplate/*/*/*/*/*
8         rm -rf aspdocs
9         cp -pr httemplate aspdocs
10         touch aspdocs
11
12 masondocs: httemplate/* httemplate/*/* httemplate/*/*/* httemplate/*/*/*/* httemplate/*/*/*/*/*
13         rm -rf masondocs
14         cp -pr httemplate masondocs
15         ( cd masondocs; \
16           ../bin/masonize; \
17         )
18         touch masondocs
19
20 alldocs: aspdocs masondocs
21
22 FS/Makefile:
23         cd FS
24         perl Makefile.PL
25
26 perl-modules:
27         cd FS; \
28         [ -e Makefile ] || perl Makefile.PL; \
29         make
30
31 install-perl-modules: perl-modules
32         cd FS; \
33         make install
34
35 install: install-perl-modules
36
37 deploy: install
38         /etc/init.d/apache restart
39
40 clean:
41         rm -rf aspdocs masondocs
42         cd FS; \
43         make clean
44