--- nsdl/build/Makefile 2002/05/05 03:35:25 1.2 +++ nsdl/build/Makefile 2002/05/23 19:58:49 1.3 @@ -1,12 +1,12 @@ # The NSDL to LON-CAPA Gateway Server # Scott Harrison -# $Id: Makefile,v 1.2 2002/05/05 03:35:25 harris41 Exp $ +# $Id: Makefile,v 1.3 2002/05/23 19:58:49 harris41 Exp $ DISTPROBE=`perl ./distprobe` DIST=$(DISTPROBE) CATEGORY="development" -SOURCE=../.. +SOURCE=.. TARGET="" NORESTORECONF="0" HOSTNAME="" @@ -57,8 +57,19 @@ help: build: @echo "Not yet implemented" -install: - @echo "Not yet implemented" +install: Makefile.install + @echo -n "" > WARNINGS + make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" \ + directories + make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" files + make warningnote + +Makefile.install: Makefile alwaysrun + cat gatewayfiles.lpml | \ + perl lpml_parse.pl install $(CATEGORY) $(DIST) "$(SOURCE)" \ + "$(TARGET)" > Makefile.install + +alwaysrun: test: @echo "Not yet implemented" @@ -87,6 +98,21 @@ statuspost: tardist: @echo "Not yet implemented" +warningnote: + @if (test -s WARNINGS); then \ + W=`grep -c '\*\*\*\* WARNING' WARNINGS`; \ + E=`grep -c '\*\*\*\* ERROR' WARNINGS`; \ + N=`grep -c '\*\*\*\* NOTE' WARNINGS`; \ + echo "---> $$W WARNINGS ENCOUNTERED! "; \ + echo "---> $$E ERRORS ENCOUNTERED! "; \ + echo "---> $$N NOTES ENCOUNTERED! "; \ + echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \ + echo "!!!! Please read the WARNINGS file !!!!"; \ + echo "!!!! to make sure everything is !!!!"; \ + echo "!!!! correct and taken care of !!!!"; \ + echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \ + fi + clean: @echo "Not yet implemented"