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

# The NSDL to LON-CAPA Gateway Server

# Scott Harrison
# $Id: Makefile,v 1.3 2002/05/23 19:58:49 harris41 Exp $

DISTPROBE=`perl ./distprobe`
DIST=$(DISTPROBE)
CATEGORY="development"
SOURCE=..
TARGET=""
NORESTORECONF="0"
HOSTNAME=""
LAUNCH=| perl
OUTSTREAM=>
SAVE=program.pl.$(TIMESTAMP)
LAUNCHSAVE=$(OUTSTREAM) $(SAVE)
METAMTARGET=""
MTARGET=""
VERSION=0.1

help:
	@echo "*** You need to specify a valid target ***"
	@echo "NOTE: You can specify options to your Makefile target."
	@echo "(option) DIST can be redhat6, redhat7, debian2.2, or default"
	@echo "(option) CATEGORY can be runtime or development"
	@echo "(option) SOURCE is an absolute or relative directory path"
	@echo "(option) TARGET is an absolute or relative directory path"
	@echo "build: compile the CVS source tree"
	@echo "install: install from a compiled CVS source tree to a "
	@echo "         specified TARGET destination on the filesystem"
	@echo "test: test different parts of the LON-CAPA system (TEST_*)"
	@echo "TEST_lpml_scripts: make sure that the system can process "
	@echo "                   the Linux Packaging Markup Language"
	@echo "TEST_system_dependencies: make sure that all needed system "
	@echo "                          components are active and present "
	@echo "                          on the server such as perl modules"
	@echo "                          and the MySQL database"
	@echo "TEST_web_layer: mimic various web-based interactions with "
	@echo "                respect to the login and various system "
	@echo "                actions on the Gateway server"
	@echo "HTML: generate an HTML-formatted description of the "
	@echo "      NSDL to LON-CAPA Gateway Server CVS source files"
	@echo "doc: compiles documentation for the system administration of"
	@echo "     the gateway server"
	@echo "status: compare the TARGET filesystem with a compiled CVS "
	@echo "        source directory"
	@echo "statuspost: post the results of "make status" to "
	@echo "            TARGET/home/httpd/html/lon-status/filestatus.html"
	@echo "rpmstatus: compare the rpms on a system to defined lists "
	@echo "           CVS:doc/otherfiles/cd_rpms and "
	@echo "           CVS:doc/otherfiles/rpm_list.txt"
	@echo "rpmstatuspost: post the results of "make rpmstatus" to "
	@echo "            TARGET/home/httpd/html/lon-status/rpmstatus.html"
	@echo "tardist: build a tarball that will upgrade the software on a "
	@echo "         system"

build:
	@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"

TEST_lpml_scripts:
	@echo "Not yet implemented"

TEST_system_dependencies:
	@echo "Not yet implemented"

TEST_web_layer:
	@echo "Not yet implemented"

HTML:
	@echo "Not yet implemented"

doc:
	@echo "Not yet implemented"

status:
	@echo "Not yet implemented"

statuspost:
	@echo "Not yet implemented"

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"


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