automate a tiny bit more
authorivan <ivan>
Mon, 29 Oct 2001 17:17:58 +0000 (17:17 +0000)
committerivan <ivan>
Mon, 29 Oct 2001 17:17:58 +0000 (17:17 +0000)
Makefile

index 7e7815f..3f3779e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
 #!/usr/bin/make
 
-default:
-       @echo "supported targets: aspdocs masondocs alldocs clean"
+help:
+       @echo "supported targets: aspdocs masondocs alldocs perl-modules"
+       @echo "                   install-perl-modules install clean"
 
 aspdocs: httemplate/* httemplate/*/* httemplate/*/*/* httemplate/*/*/*/* httemplate/*/*/*/*/*
        rm -rf aspdocs
@@ -18,6 +19,26 @@ masondocs: httemplate/* httemplate/*/* httemplate/*/*/* httemplate/*/*/*/* httem
 
 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