--- loncom/build/Makefile 2002/05/30 17:34:23 1.118 +++ loncom/build/Makefile 2002/06/12 15:53:46 1.121 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Scott Harrison -# $Id: Makefile,v 1.118 2002/05/30 17:34:23 harris41 Exp $ +# $Id: Makefile,v 1.121 2002/06/12 15:53:46 harris41 Exp $ DISTPROBE=`perl ./distprobe` DIST=$(DISTPROBE) @@ -42,7 +42,7 @@ help: @echo "HTML: generate an HTML-formatted description of the LON-CAPA" @echo " CVS files" @echo "documentation_tree: compiles a documentation tree from the " - @echo " CVS:doc directory" + @echo " CVS:doc directory" @echo "status: compare the TARGET filesystem with a compiled CVS " @echo " source directory" @echo "statuspost: post the results of "make status" to " @@ -75,7 +75,7 @@ TEST_web_layer: TEST_hosts_tab: @echo "Testing hosts.tab" - @if (test -h ../hosts.tab); then \ + @if (test -e ../hosts.tab); then \ echo "there is a defined link; assume okay"; \ else echo "**** ERROR **** hosts.tab not defined!" && \ echo -n "You need to do one of the following within your " && \ @@ -217,7 +217,12 @@ NET_rawinstall: make TIMESTAMP=`date +"%s"` METAMTARGET="TRANSPORT" \ MTARGET="rawinstall" HOSTNAME="$(HOSTNAME)" lpmladm -install: TEST_hosts_tab Makefile.install Makefile +VERSION: + install -d $(TARGET)/etc + echo -n "LON-CAPA release $(VERSION)-" > $(TARGET)/etc/loncapa-release + `date +"%Y%m%d"` >> $(TARGET)/etc/loncapa-release + +install: VERSION TEST_hosts_tab Makefile.install Makefile echo -n "" > WARNINGS make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" \ directories @@ -233,7 +238,7 @@ install: TEST_hosts_tab Makefile.install echo -n "(YOU MAY NEED TO REINITIALIZE YOUR MYSQL www\@localhost USER)" echo -n "Please see http://install.lon-capa.org/ for more information" -rawinstall: Makefile.install Makefile +rawinstall: VERSION Makefile.install Makefile echo -n "" > WARNINGS make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" \ directories