--- loncom/build/Makefile 2002/06/03 06:16:51 1.119 +++ 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.119 2002/06/03 06:16:51 harris41 Exp $ +# $Id: Makefile,v 1.121 2002/06/12 15:53:46 harris41 Exp $ DISTPROBE=`perl ./distprobe` DIST=$(DISTPROBE) @@ -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