--- loncom/build/Makefile 2002/02/04 14:43:52 1.62 +++ loncom/build/Makefile 2002/02/04 23:40:47 1.63 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Scott Harrison -# $Id: Makefile,v 1.62 2002/02/04 14:43:52 harris41 Exp $ +# $Id: Makefile,v 1.63 2002/02/04 23:40:47 harris41 Exp $ DIST="default" CATEGORY="development" @@ -59,6 +59,19 @@ TEST_lpml_scripts: TEST_web_layer: @echo "Testing of web layers is not yet implemented." +TEST_hosts_tab: + @echo "Testing hosts.tab" + @if (test -h ../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 " && \ + echo "CVS repository" && \ + echo " 1) cd ../; ln -s production_hosts.tab hosts.tab" && \ + echo " 2) cd ../; ln -s development_hosts.tab hosts.tab" && \ + echo "or 3) cd ../; ln -s rawhide_hosts.tab hosts.tab" && \ + echo "(you most likely want option #1, production_hosts.tab)" && \ + exit 1; \ + fi HTML: install -d HTML cp ../../doc/loncapafiles/*.gif HTML @@ -119,7 +132,7 @@ warningnote: cat WARNINGS; \ fi -install: Makefile.install Makefile +install: TEST_hosts_tab Makefile.install Makefile echo -n "" > WARNINGS make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" \ directories @@ -145,7 +158,9 @@ Makefile.build: ../../doc/loncapafiles/l Makefile.build RPM: BinaryRoot base_rpm_file_list - cat ../../doc/loncapafiles/loncapafiles.lpml | perl lpml_parse.pl make_rpm $(CATEGORY) $(DIST) $(SOURCE) $(TARGET) > base_customizerpm.xml + cat ../../doc/loncapafiles/loncapafiles.lpml | \ + perl lpml_parse.pl make_rpm $(CATEGORY) $(DIST) $(SOURCE) $(TARGET) \ + > base_customizerpm.xml cat base_rpm_file_list.txt | perl make_rpm.pl base 3.2 '' '' \ BinaryRoot base_customizerpm.xml