--- loncom/build/Makefile 2002/02/06 22:41:47 1.66 +++ loncom/build/Makefile 2002/03/22 01:34:24 1.78 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Scott Harrison -# $Id: Makefile,v 1.66 2002/02/06 22:41:47 harris41 Exp $ +# $Id: Makefile,v 1.78 2002/03/22 01:34:24 harris41 Exp $ DIST="default" CATEGORY="development" @@ -64,7 +64,8 @@ TEST_lpml_scripts: cd ../test; perl filecomparetest.pl TEST_web_layer: - @echo "Testing of web layers is not yet implemented." + @echo "TESTING WEB LAYER" + cd weblayer_test; make TEST_hosts_tab: @echo "Testing hosts.tab" @@ -87,8 +88,6 @@ NET_hosts_tab: hosts_tab: TEST_hosts_tab cat ../../doc/loncapafiles/loncapafiles.lpml | \ perl xfml_parse.pl ../../doc/loncapafiles/valid_hosts.xfml | \ - perl xfml_parse.pl ../../doc/loncapafiles/no_globs.xfml | \ - perl xfml_parse.pl ../../doc/loncapafiles/no_links.xfml | \ perl lpml_parse.pl install $(CATEGORY) $(DIST) "$(SOURCE)" \ "$(TARGET)" > Makefile.install make -f Makefile.install directories @@ -182,9 +181,7 @@ warningnote: echo "!!!! Please read the WARNINGS file !!!!"; \ echo "!!!! to make sure everything is !!!!"; \ echo "!!!! correct and taken care of !!!!"; \ - echo "!!!! (it is output below here) !!!!"; \ echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \ - cat WARNINGS; \ fi NET_webserverconf: @@ -195,8 +192,14 @@ webserverconf: cat ../../doc/loncapafiles/webserver.piml | \ perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) +sanitycheck: + cat ../../doc/loncapafiles/sanitycheck.piml | \ + perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \ + tee -a WARNINGS + postinstall: make webserverconf + make sanitycheck install: TEST_hosts_tab Makefile.install Makefile echo -n "" > WARNINGS @@ -206,7 +209,9 @@ install: TEST_hosts_tab Makefile.install make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" links make SOURCE="$(SOURCE)" TARGET="$(TARGET)" \ NORESTORECONF="$(NORESTORECONF)" configinstall + make postinstall make warningnote + echo "You can run 'make test' to see if your system is ready to go!" Makefile.install: ../../doc/loncapafiles/loncapafiles.lpml lpml_parse.pl cat ../../doc/loncapafiles/loncapafiles.lpml | \ @@ -220,8 +225,8 @@ build: Makefile.build pod2html.sh pod2ma Makefile.build: ../../doc/loncapafiles/loncapafiles.lpml lpml_parse.pl cat ../../doc/loncapafiles/loncapafiles.lpml | \ - perl lpml_parse.pl build $(CATEGORY) $(DIST) "../.." "" > \ - Makefile.build + perl lpml_parse.pl build $(CATEGORY) $(DIST) "$(SOURCE)" "$(TARGET)" \ + > Makefile.build RPM: BinaryRoot base_rpm_file_list cat ../../doc/loncapafiles/loncapafiles.lpml | \ @@ -256,30 +261,6 @@ base_rpm_file_list: BinaryRoot: base_rpm_file_list make TARGET='BinaryRoot' NORESTORECONF='1' install -loncapaconfig: - rm -Rf LoncapaconfigRoot - install -d LoncapaconfigRoot/usr/src/ - install -d LoncapaconfigRoot/usr/lib/python1.5/site-packages - install /usr/lib/python1.5/site-packages/kudzumodule.so \ - LoncapaconfigRoot/usr/lib/python1.5/site-packages/kudzumodule.so - cd LoncapaconfigRoot/usr/src; cp -pR /mnt/drive/loncapaconfig . - install -d LoncapaconfigRoot/usr/sbin - @echo -e "#!/bin/sh\ncd /usr/src/loncapaconfig/usr/bin; \ - ./loncapaconfig\n" > LoncapaconfigRoot/usr/sbin/loncapaconfig - chmod u+x LoncapaconfigRoot/usr/sbin/loncapaconfig - find LoncapaconfigRoot -type d | xargs chmod o-wxr - find LoncapaconfigRoot -type f | xargs chmod o-wxr - find LoncapaconfigRoot/ -type d | grep 'src/lon' > \ - loncapaconfig_file_list.txt - find LoncapaconfigRoot/ -type d | grep \ - '^LoncapaconfigRoot/usr/lib/python1.5/site-packages' >> \ - loncapaconfig_file_list.txt - find LoncapaconfigRoot/ -type f >> loncapaconfig_file_list.txt - cat loncapaconfig_file_list.txt | perl make_rpm.pl loncapaconfig 3.1 \ - '' '' LoncapaconfigRoot - cp LON-CAPA-loncapaconfig-3.1-1.i386.rpm \ - /mnt/drive/install.lon-capa.org/3.1/currentcdsource/RedHat/RPMS/. - # Generates CVS:loncom/build/docs; root location of install.lon-capa.org doc: install -d docs @@ -291,6 +272,26 @@ doc: install -m 0755 -d docs/reconfig/confexamples install -m 0644 ../../doc/build/confexamples/[^C][^V]* \ docs/reconfig/confexamples + perl doc_template.pl ../../doc/templates/template.html \ + ../../doc/build/installindex.html > docs/index.html + install -m 0755 -d docs/license + perl doc_template.pl ../../doc/templates/template.html \ + ../../doc/build/license.html > docs/license/index.html + install -m 0755 -d docs/contact + perl doc_template.pl ../../doc/templates/template.html \ + ../../doc/build/contact.html > docs/contact/index.html + install -m 0755 -d docs/faq + perl doc_template.pl ../../doc/templates/template.html \ + ../../doc/build/faq.html > docs/faq/index.html + install -m 0755 -d docs/downloads + perl doc_template.pl ../../doc/templates/template.html \ + ../../doc/build/download.html > docs/downloads/index.html + install -m 0755 -d docs/install + perl doc_template.pl ../../doc/templates/template.html \ + ../../doc/build/install.html > docs/install/index.html + install -m 0755 -d docs/upgrade + perl doc_template.pl ../../doc/templates/template.html \ + ../../doc/build/upgrade.html > docs/upgrade/index.html cd docs; tar czvpf ../docs.tar.gz . documentation_tree: cvsreport @@ -349,3 +350,4 @@ clean: rm -Rf docs rm -f program.pl* rm -Rf lpmladm.* + make -f Makefile.cvs clean