File:  [LON-CAPA] / nsdl / build / Makefile
Revision 1.3: download - view: text, annotated - select for diffs
Thu May 23 19:58:49 2002 UTC (20 years, 6 months ago) by harris41
Branches: MAIN
CVS tags: HEAD
BUG 342 fixed.  Makefile install target is supported.

    1: # The NSDL to LON-CAPA Gateway Server
    2: 
    3: # Scott Harrison
    4: # $Id: Makefile,v 1.3 2002/05/23 19:58:49 harris41 Exp $
    5: 
    6: DISTPROBE=`perl ./distprobe`
    7: DIST=$(DISTPROBE)
    8: CATEGORY="development"
    9: SOURCE=..
   10: TARGET=""
   11: NORESTORECONF="0"
   12: HOSTNAME=""
   13: LAUNCH=| perl
   14: OUTSTREAM=>
   15: SAVE=program.pl.$(TIMESTAMP)
   16: LAUNCHSAVE=$(OUTSTREAM) $(SAVE)
   17: METAMTARGET=""
   18: MTARGET=""
   19: VERSION=0.1
   20: 
   21: help:
   22: 	@echo "*** You need to specify a valid target ***"
   23: 	@echo "NOTE: You can specify options to your Makefile target."
   24: 	@echo "(option) DIST can be redhat6, redhat7, debian2.2, or default"
   25: 	@echo "(option) CATEGORY can be runtime or development"
   26: 	@echo "(option) SOURCE is an absolute or relative directory path"
   27: 	@echo "(option) TARGET is an absolute or relative directory path"
   28: 	@echo "build: compile the CVS source tree"
   29: 	@echo "install: install from a compiled CVS source tree to a "
   30: 	@echo "         specified TARGET destination on the filesystem"
   31: 	@echo "test: test different parts of the LON-CAPA system (TEST_*)"
   32: 	@echo "TEST_lpml_scripts: make sure that the system can process "
   33: 	@echo "                   the Linux Packaging Markup Language"
   34: 	@echo "TEST_system_dependencies: make sure that all needed system "
   35: 	@echo "                          components are active and present "
   36: 	@echo "                          on the server such as perl modules"
   37: 	@echo "                          and the MySQL database"
   38: 	@echo "TEST_web_layer: mimic various web-based interactions with "
   39: 	@echo "                respect to the login and various system "
   40: 	@echo "                actions on the Gateway server"
   41: 	@echo "HTML: generate an HTML-formatted description of the "
   42: 	@echo "      NSDL to LON-CAPA Gateway Server CVS source files"
   43: 	@echo "doc: compiles documentation for the system administration of"
   44: 	@echo "     the gateway server"
   45: 	@echo "status: compare the TARGET filesystem with a compiled CVS "
   46: 	@echo "        source directory"
   47: 	@echo "statuspost: post the results of "make status" to "
   48: 	@echo "            TARGET/home/httpd/html/lon-status/filestatus.html"
   49: 	@echo "rpmstatus: compare the rpms on a system to defined lists "
   50: 	@echo "           CVS:doc/otherfiles/cd_rpms and "
   51: 	@echo "           CVS:doc/otherfiles/rpm_list.txt"
   52: 	@echo "rpmstatuspost: post the results of "make rpmstatus" to "
   53: 	@echo "            TARGET/home/httpd/html/lon-status/rpmstatus.html"
   54: 	@echo "tardist: build a tarball that will upgrade the software on a "
   55: 	@echo "         system"
   56: 
   57: build:
   58: 	@echo "Not yet implemented"
   59: 
   60: install: Makefile.install
   61: 	@echo -n "" > WARNINGS
   62: 	make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
   63: 	directories
   64: 	make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" files
   65: 	make warningnote
   66: 
   67: Makefile.install: Makefile alwaysrun
   68: 	cat gatewayfiles.lpml | \
   69: 	perl lpml_parse.pl install $(CATEGORY) $(DIST) "$(SOURCE)" \
   70: 	"$(TARGET)" > Makefile.install
   71: 
   72: alwaysrun:
   73: 
   74: test:
   75: 	@echo "Not yet implemented"
   76: 
   77: TEST_lpml_scripts:
   78: 	@echo "Not yet implemented"
   79: 
   80: TEST_system_dependencies:
   81: 	@echo "Not yet implemented"
   82: 
   83: TEST_web_layer:
   84: 	@echo "Not yet implemented"
   85: 
   86: HTML:
   87: 	@echo "Not yet implemented"
   88: 
   89: doc:
   90: 	@echo "Not yet implemented"
   91: 
   92: status:
   93: 	@echo "Not yet implemented"
   94: 
   95: statuspost:
   96: 	@echo "Not yet implemented"
   97: 
   98: tardist:
   99: 	@echo "Not yet implemented"
  100: 
  101: warningnote:
  102: 	@if (test -s WARNINGS); then \
  103: 		W=`grep -c '\*\*\*\* WARNING' WARNINGS`; \
  104: 		E=`grep -c '\*\*\*\* ERROR' WARNINGS`; \
  105: 		N=`grep -c '\*\*\*\* NOTE' WARNINGS`; \
  106: 		echo "--->  $$W WARNINGS ENCOUNTERED!       "; \
  107: 		echo "--->  $$E ERRORS ENCOUNTERED!         "; \
  108: 		echo "--->  $$N NOTES ENCOUNTERED!          "; \
  109: 		echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
  110: 		echo "!!!!  Please read the WARNINGS file !!!!"; \
  111: 		echo "!!!!   to make sure everything is   !!!!"; \
  112: 		echo "!!!!    correct and taken care of   !!!!"; \
  113: 		echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
  114: 	fi
  115: 
  116: clean:
  117: 	@echo "Not yet implemented"
  118: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>