[LON-CAPA-cvs] cvs: nsdl /build Makefile
harris41
lon-capa-cvs@mail.lon-capa.org
Thu, 23 May 2002 19:58:49 -0000
harris41 Thu May 23 15:58:49 2002 EDT
Modified files:
/nsdl/build Makefile
Log:
BUG 342 fixed. Makefile install target is supported.
Index: nsdl/build/Makefile
diff -u nsdl/build/Makefile:1.2 nsdl/build/Makefile:1.3
--- nsdl/build/Makefile:1.2 Sat May 4 23:35:25 2002
+++ nsdl/build/Makefile Thu May 23 15:58:49 2002
@@ -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 @@
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"
@@ -86,6 +97,21 @@
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"