--- loncom/build/Makefile 2002/02/04 23:40:47 1.63 +++ loncom/build/Makefile 2002/02/05 01:49:39 1.65 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Scott Harrison -# $Id: Makefile,v 1.63 2002/02/04 23:40:47 harris41 Exp $ +# $Id: Makefile,v 1.65 2002/02/05 01:49:39 harris41 Exp $ DIST="default" CATEGORY="development" @@ -72,6 +72,19 @@ TEST_hosts_tab: echo "(you most likely want option #1, production_hosts.tab)" && \ exit 1; \ fi + +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 files + @echo "If hosts.tab has changed, restart httpd and loncontrol:" + @echo " /etc/rc.d/init.d/httpd restart" + @echo " /etc/rc.d/init.d/loncontrol restart" + HTML: install -d HTML cp ../../doc/loncapafiles/*.gif HTML @@ -132,6 +145,13 @@ warningnote: cat WARNINGS; \ fi +webserverconf: + cat ../../doc/loncapafiles/webserver.piml | \ + perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" | perl + +postinstall: + make webserverconf + install: TEST_hosts_tab Makefile.install Makefile echo -n "" > WARNINGS make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" \