Annotation of loncom/build/Makefile, revision 1.81

1.48      harris41    1: # The LearningOnline Network with CAPA
                      2: 
1.1       harris41    3: # Scott Harrison
1.81    ! harris41    4: # $Id: Makefile,v 1.80 2002/04/21 23:21:06 harris41 Exp $
1.1       harris41    5: 
1.79      harris41    6: DISTPROBE=`perl ./distprobe`
                      7: DIST=$(DISTPROBE)
1.39      harris41    8: CATEGORY="development"
1.80      harris41    9: SOURCE=../..
1.51      harris41   10: TARGET=""
1.55      harris41   11: NORESTORECONF="0"
1.66      harris41   12: HOSTNAME=""
                     13: LAUNCH=| perl
                     14: OUTSTREAM=>
                     15: SAVE=program.pl.$(TIMESTAMP)
                     16: LAUNCHSAVE=$(OUTSTREAM) $(SAVE)
                     17: METAMTARGET=""
                     18: MTARGET=""
1.12      harris41   19: 
1.53      harris41   20: help: 
1.52      harris41   21: 	@echo "*** You need to specify a valid target ***"
                     22: 	@echo "NOTE: You can specify options to your Makefile target."
                     23: 	@echo "(option) DIST can be redhat7.1, debian, redhat6.2, or default"
                     24: 	@echo "(option) CATEGORY can be runtime or development"
                     25: 	@echo "(option) SOURCE is an absolute or relative directory path"
                     26: 	@echo "(option) TARGET is an absolute or relative directory path"
                     27: 	@echo "build: compile the CVS source tree"
                     28: 	@echo "install: install from a compiled CVS source tree to a "
                     29: 	@echo "         specified TARGET destination on the filesystem"
                     30: 	@echo "test: test different parts of the LON-CAPA system (TEST_*)"
                     31: 	@echo "TEST_lpml_scripts: make sure that the system can process "
                     32: 	@echo "                   the Linux Packaging Markup Language"
                     33: 	@echo "TEST_system_dependencies: make sure that all needed system "
                     34: 	@echo "                          components are active and present "
                     35: 	@echo "                          on the server such as perl modules"
                     36: 	@echo "                          and the MySQL database"
                     37: 	@echo "TEST_web_layer: mimic a login and various system actions on "
                     38: 	@echo "                a LON-CAPA system"
                     39: 	@echo "HTML: generate an HTML-formatted description of the LON-CAPA"
                     40: 	@echo "      CVS files"
1.54      harris41   41: 	@echo "documentation_tree: compiles a documentation tree from the "
                     42:         @echo "                    CVS:doc directory"
1.52      harris41   43: 	@echo "status: compare the TARGET filesystem with a compiled CVS "
                     44: 	@echo "        source directory"
                     45: 	@echo "statuspost: post the results of "make status" to "
                     46: 	@echo "            TARGET/home/httpd/html/lon-status/filestatus.html"
                     47: 	@echo "rpmstatus: compare the rpms on a system to defined lists "
                     48: 	@echo "           CVS:doc/otherfiles/cd_rpms and "
                     49: 	@echo "           CVS:doc/otherfiles/rpm_list.txt"
                     50: 	@echo "rpmstatuspost: post the results of "make rpmstatus" to "
                     51: 	@echo "            TARGET/home/httpd/html/lon-status/rpmstatus.html"
1.55      harris41   52: 	@echo "RPM: build LON-CAPA-base RPM from CVS repository"
                     53: 	@echo "setup_RPM: build LON-CAPA-setup RPM from CVS repository"
                     54: 	@echo "           handy for CD-ROM generation"
1.1       harris41   55: 
1.52      harris41   56: test: TEST_lpml_scripts TEST_system_dependencies TEST_web_layer
1.41      harris41   57: 	@echo "ALL SYSTEM DEPENDENCY TESTS SUCCESSFUL"
                     58: 
                     59: TEST_system_dependencies:
1.52      harris41   60: 	@echo "TESTING SYSTEM DEPENDENCIES"
1.41      harris41   61: 	cd system_dependencies; make
1.44      harris41   62: 
                     63: TEST_lpml_scripts:
1.52      harris41   64: 	@echo "TESTING LPML INSTALLATION CODE"
1.44      harris41   65: 	cd ../test; perl filecomparetest.pl
1.41      harris41   66: 
1.52      harris41   67: TEST_web_layer:
1.77      harris41   68: 	@echo "TESTING WEB LAYER"
                     69: 	cd weblayer_test; make
1.2       harris41   70: 
1.63      harris41   71: TEST_hosts_tab:
                     72: 	@echo "Testing hosts.tab"
                     73: 	@if (test -h ../hosts.tab); then \
                     74: 		echo "there is a defined link; assume okay"; \
                     75: 	else echo "**** ERROR **** hosts.tab not defined!" && \
                     76: 	     echo -n "You need to do one of the following within your " && \
                     77: 	     echo "CVS repository" && \
                     78: 	     echo "   1) cd ../; ln -s production_hosts.tab hosts.tab" && \
                     79: 	     echo "   2) cd ../; ln -s development_hosts.tab hosts.tab" && \
                     80: 	     echo "or 3) cd ../; ln -s rawhide_hosts.tab hosts.tab" && \
                     81: 	     echo "(you most likely want option #1, production_hosts.tab)" && \
                     82: 	     exit 1; \
                     83: 	fi
1.64      harris41   84: 
1.66      harris41   85: NET_hosts_tab:
                     86: 	make TIMESTAMP=`date +"%s"` METAMTARGET="TRANSPORT" \
                     87: 	MTARGET="hosts_tab" HOSTNAME="$(HOSTNAME)" lpmladm
                     88: 
1.64      harris41   89: hosts_tab: TEST_hosts_tab
1.80      harris41   90: 	cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
                     91: 	perl xfml_parse.pl $(SOURCE)/doc/loncapafiles/valid_hosts.xfml | \
1.64      harris41   92: 	perl lpml_parse.pl install $(CATEGORY) $(DIST) "$(SOURCE)" \
                     93: 	"$(TARGET)" > Makefile.install
1.66      harris41   94: 	make -f Makefile.install directories
1.64      harris41   95: 	make -f Makefile.install files
                     96: 	@echo "If hosts.tab has changed, restart httpd and loncontrol:"
                     97: 	@echo "   /etc/rc.d/init.d/httpd restart"
                     98: 	@echo "   /etc/rc.d/init.d/loncontrol restart"
                     99: 
1.66      harris41  100: lpmladm:
                    101: 	@if (test $(METAMTARGET) = "TRANSPORT"); then \
                    102: 		echo "Transporting to $(HOSTNAME)"; \
                    103: 		sudo make DIST=$(DIST) CATEGORY=$(CATEGORY) \
                    104: 		SOURCE="$(SOURCE)" \
                    105: 		TARGET="lpmladm.$(TIMESTAMP)" \
                    106: 		NORESTORECONF="$(NORESTORECONF)" "$(MTARGET)"; \
                    107: 		cd lpmladm.$(TIMESTAMP); \
                    108: 		sudo tar czvf ../tarball$(TIMESTAMP).tar.gz .; \
                    109: 		cd ..; scp tarball$(TIMESTAMP).tar.gz \
                    110: 		lpmladm@$(HOSTNAME):~/tarball$(TIMESTAMP).tar.gz; \
                    111: 		ssh lpmladm@$(HOSTNAME) sudo mv tarball$(TIMESTAMP).tar.gz /; \
                    112: 		ssh lpmladm@$(HOSTNAME) sudo tar -x -z -v -C / \
                    113: 		-p --same-owner -f \
                    114: 		/tarball$(TIMESTAMP).tar.gz; \
                    115: 		ssh lpmladm@$(HOSTNAME) sudo rm -f \
                    116: 		/tarball$(TIMESTAMP).tar.gz; \
                    117: 	elif (test $(METAMTARGET) = "LAUNCH"); then \
                    118: 		echo "Launching process on $(HOSTNAME)"; \
                    119: 		LAUNCHSAVE=$(OUTSTREAM) $(SAVE); \
                    120: 		make DIST=$(DIST) CATEGORY=$(CATEGORY) SOURCE="$(SOURCE)" \
                    121: 		TARGET="$(TARGET)" NORESTORECONF="$(NORESTORECONF)" \
                    122: 		LAUNCH="$(LAUNCHSAVE)" "$(MTARGET)"; \
                    123: 		scp $(SAVE) lpmladm@$(HOSTNAME):~/$(SAVE); \
                    124: 		ssh lpmladm@$(HOSTNAME) sudo perl $(SAVE); \
                    125: 		ssh lpmladm@$(HOSTNAME) sudo rm -f $(SAVE); \
                    126: 	else \
                    127: 		echo "**** ERROR **** Incorrect METAMTARGET"; \
                    128: 	fi
                    129: 
1.3       harris41  130: HTML:
                    131: 	install -d HTML
1.80      harris41  132: 	cp $(SOURCE)/doc/loncapafiles/*.gif HTML
                    133: 	cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
                    134: 	perl lpml_parse.pl html development default "$(SOURCE)" '$(TARGET)' \
                    135: 	> HTML/index.html
1.3       harris41  136: 
1.8       harris41  137: status:
1.7       harris41  138: 	install -d HTML
1.80      harris41  139: 	cp $(SOURCE)/doc/loncapafiles/*.gif HTML
                    140: 	cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
                    141: 	perl lpml_parse.pl html $(CATEGORY) $(DIST) "$(SOURCE)" "($TARGET)" | \
1.49      harris41  142: 	perl lpml_html_posteval.pl > \
1.39      harris41  143: 	HTML/filestatus.html
1.48      harris41  144: 
1.22      harris41  145: statuspost: status
1.80      harris41  146: 	cp $(SOURCE)/doc/loncapafiles/*.gif \
                    147: 	$(TARGET)/home/httpd/html/lon-status
1.52      harris41  148: 	cp HTML/filestatus.html \
                    149: 	$(TARGET)/home/httpd/html/lon-status/filestatus.html
1.22      harris41  150: 
1.33      harris41  151: rpmstatus:
                    152: 	install -d RPMSTATUS
1.52      harris41  153: 	rpm -qa --queryformat \
                    154: 	'%{NAME}\t%{VERSION}\t%{RELEASE}\t%{BUILDTIME}\n' | sort > \
                    155: 	RPMSTATUS/current.tmp
1.80      harris41  156: 	cat $(SOURCE)/doc/otherfiles/cd_rpms.txt > RPMSTATUS/standard.tmp
                    157: 	cat $(SOURCE)/doc/otherfiles/rpm_list.txt > RPMSTATUS/expected.tmp
1.52      harris41  158: 	perl rpmparse.pl RPMSTATUS/standard.tmp RPMSTATUS/current.tmp \
                    159: 	RPMSTATUS/expected.tmp > RPMSTATUS/rpmstatus.html
1.33      harris41  160: 
                    161: rpmstatuspost: rpmstatus
                    162: 	cp RPMSTATUS/rpmstatus.html /home/httpd/html/lon-status/rpmstatus.html
                    163: 
1.37      albertel  164: configinstall: Makefile.configinstall
1.55      harris41  165: 	make -f Makefile.configinstall SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
                    166: 	configfiles
                    167: 	if (test "0" = $(NORESTORECONF)); then \
                    168: 	perl loncaparestoreconfigurations suffix .lpmlnew; fi
1.9       harris41  169: 
1.80      harris41  170: Makefile.configinstall: $(SOURCE)/doc/loncapafiles/loncapafiles.lpml lpml_parse.pl
                    171: 	cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
1.55      harris41  172: 	perl lpml_parse.pl configinstall $(CATEGORY) $(DIST) "$(SOURCE)" \
                    173: 	"$(TARGET)" > Makefile.configinstall
1.37      albertel  174: 
1.45      harris41  175: warningnote:
                    176: 	@if (test -s WARNINGS); then \
                    177: 		W=`grep -c '\*\*\*\* WARNING' WARNINGS`; \
                    178: 		E=`grep -c '\*\*\*\* ERROR' WARNINGS`; \
                    179: 		N=`grep -c '\*\*\*\* NOTE' WARNINGS`; \
                    180: 		echo "--->  $$W WARNINGS ENCOUNTERED!       "; \
                    181: 		echo "--->  $$E ERRORS ENCOUNTERED!         "; \
                    182: 		echo "--->  $$N NOTES ENCOUNTERED!          "; \
                    183: 		echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
                    184: 		echo "!!!!  Please read the WARNINGS file !!!!"; \
                    185: 		echo "!!!!   to make sure everything is   !!!!"; \
                    186: 		echo "!!!!    correct and taken care of   !!!!"; \
                    187: 		echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
                    188: 	fi
1.65      harris41  189: 
1.66      harris41  190: NET_webserverconf:
                    191: 	make TIMESTAMP=`date +"%s"` METAMTARGET="LAUNCH" \
                    192: 	MTARGET="webserverconf" HOSTNAME="$(HOSTNAME)" lpmladm
                    193: 
1.65      harris41  194: webserverconf:
1.80      harris41  195: 	cat $(SOURCE)/doc/loncapafiles/webserver.piml | \
1.66      harris41  196: 	perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH)
1.65      harris41  197: 
1.75      harris41  198: sanitycheck:
1.80      harris41  199: 	cat $(SOURCE)/doc/loncapafiles/sanitycheck.piml | \
1.76      harris41  200: 	perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
                    201: 	tee -a WARNINGS
1.75      harris41  202: 
1.65      harris41  203: postinstall:
                    204: 	make webserverconf
1.75      harris41  205: 	make sanitycheck
1.45      harris41  206: 
1.63      harris41  207: install: TEST_hosts_tab Makefile.install Makefile
1.46      harris41  208: 	echo -n "" > WARNINGS
1.52      harris41  209: 	make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
                    210: 	directories
1.51      harris41  211: 	make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" files
                    212: 	make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" links
1.55      harris41  213: 	make SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
                    214: 	NORESTORECONF="$(NORESTORECONF)" configinstall
1.72      harris41  215: 	make postinstall
1.45      harris41  216: 	make warningnote
1.76      harris41  217: 	echo "You can run 'make test' to see if your system is ready to go!"
1.4       harris41  218: 
1.80      harris41  219: Makefile.install: $(SOURCE)/doc/loncapafiles/loncapafiles.lpml lpml_parse.pl
                    220: 	cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
1.52      harris41  221: 	perl lpml_parse.pl install $(CATEGORY) $(DIST) "$(SOURCE)" \
                    222: 	"$(TARGET)" > Makefile.install
1.37      albertel  223: 
1.50      harris41  224: build: Makefile.build pod2html.sh pod2man.sh
1.46      harris41  225: 	echo -n "" > WARNINGS
1.37      albertel  226: 	make -f Makefile.build all
1.45      harris41  227: 	make warningnote
1.37      albertel  228: 
1.80      harris41  229: Makefile.build: $(SOURCE)/doc/loncapafiles/loncapafiles.lpml lpml_parse.pl
                    230: 	cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
1.78      harris41  231: 	perl lpml_parse.pl build $(CATEGORY) $(DIST) "$(SOURCE)" "$(TARGET)" \
                    232: 	> Makefile.build
1.8       harris41  233: 
1.55      harris41  234: RPM: BinaryRoot base_rpm_file_list
1.80      harris41  235: 	cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
1.63      harris41  236: 	perl lpml_parse.pl make_rpm $(CATEGORY) $(DIST) $(SOURCE) $(TARGET) \
                    237: 	> base_customizerpm.xml
1.55      harris41  238: 	cat base_rpm_file_list.txt | perl make_rpm.pl base 3.2 '' '' \
                    239: 	BinaryRoot base_customizerpm.xml
                    240: 
1.59      harris41  241: setup_RPM:
1.55      harris41  242: 	echo "SetupBinaryRoot/etc/passwd" > setup_rpm_file_list.txt
                    243: 	echo "SetupBinaryRoot/etc/group" >> setup_rpm_file_list.txt
                    244: 	echo "SetupBinaryRoot/etc/hosts.deny" >> setup_rpm_file_list.txt
                    245: 	echo "SetupBinaryRoot/home/www" >> setup_rpm_file_list.txt
                    246: 	echo "SetupBinaryRoot/etc/pam.d/passwd" >> setup_rpm_file_list.txt
                    247: 	echo "SetupBinaryRoot/etc/pam.d/login" >> setup_rpm_file_list.txt
                    248: 	perl setup_rpm_binaryroot.pl
                    249: 	cat setup_rpm_file_list.txt | perl make_rpm.pl setup 3.2 '' '' \
                    250: 	SetupBinaryRoot customizerpm.xml
1.60      harris41  251: 
                    252: DPKG:
                    253: 	make TARGET='LON-CAPA-base' NORESTORECONF='1' install
                    254: 	@echo "You will next need to follow instructions at:"
                    255: 	@echo "http://people.debian.org/~jaldhar/make_package1.html"
                    256: 	@echo "A directory with a snapshot of the debian package files"
                    257: 	@echo "is LON-CAPA-base."
1.55      harris41  258: 
                    259: base_rpm_file_list:
1.80      harris41  260: 	cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
1.55      harris41  261: 	perl lpml_parse.pl rpm_file_list $(CATEGORY) $(DIST) $(SOURCE) \
                    262: 	'BinaryRoot' | sort > base_rpm_file_list.txt
1.6       harris41  263: 
1.55      harris41  264: BinaryRoot: base_rpm_file_list
                    265: 	make TARGET='BinaryRoot' NORESTORECONF='1' install
1.23      harris41  266: 
1.62      harris41  267: # Generates CVS:loncom/build/docs; root location of install.lon-capa.org
                    268: doc:
                    269: 	install -d docs
                    270: 	install -m 0755 -d docs/icons
1.80      harris41  271: 	install -m 0644 $(SOURCE)/doc/icons/[^C][^V]* docs/icons
1.62      harris41  272: 	install -m 0755 -d docs/reconfig
1.80      harris41  273: 	perl doc_template.pl $(SOURCE)/doc/templates/template.html \
                    274: 		$(SOURCE)/doc/build/reconfig.html > docs/reconfig/index.html
1.62      harris41  275: 	install -m 0755 -d docs/reconfig/confexamples
1.80      harris41  276: 	install -m 0644 $(SOURCE)/doc/build/confexamples/[^C][^V]* \
1.62      harris41  277: 		docs/reconfig/confexamples
1.80      harris41  278: 	perl doc_template.pl $(SOURCE)/doc/templates/template.html \
                    279: 		$(SOURCE)/doc/build/installindex.html > docs/index.html
1.67      harris41  280: 	install -m 0755 -d docs/license
1.80      harris41  281: 	perl doc_template.pl $(SOURCE)/doc/templates/template.html \
                    282: 		$(SOURCE)/doc/build/license.html > docs/license/index.html
1.67      harris41  283: 	install -m 0755 -d docs/contact
1.80      harris41  284: 	perl doc_template.pl $(SOURCE)/doc/templates/template.html \
                    285: 		$(SOURCE)/doc/build/contact.html > docs/contact/index.html
1.68      harris41  286: 	install -m 0755 -d docs/faq
1.80      harris41  287: 	perl doc_template.pl $(SOURCE)/doc/templates/template.html \
                    288: 		$(SOURCE)/doc/build/faq.html > docs/faq/index.html
1.69      harris41  289: 	install -m 0755 -d docs/downloads
1.80      harris41  290: 	perl doc_template.pl $(SOURCE)/doc/templates/template.html \
                    291: 		$(SOURCE)/doc/build/download.html > docs/downloads/index.html
1.69      harris41  292: 	install -m 0755 -d docs/install
1.80      harris41  293: 	perl doc_template.pl $(SOURCE)/doc/templates/template.html \
                    294: 		$(SOURCE)/doc/build/install.html > docs/install/index.html
1.69      harris41  295: 	install -m 0755 -d docs/upgrade
1.80      harris41  296: 	perl doc_template.pl $(SOURCE)/doc/templates/template.html \
                    297: 		$(SOURCE)/doc/build/upgrade.html > docs/upgrade/index.html
1.62      harris41  298: 	cd docs; tar czvpf ../docs.tar.gz .
                    299: 
1.54      harris41  300: documentation_tree: cvsreport
1.26      harris41  301: 	install -d docs
1.80      harris41  302: 	install $(SOURCE)/doc/build/cvsreport.html docs/cvsreport.html
                    303: 	install $(SOURCE)/doc/build/doc.html docs/index.html
1.26      harris41  304: 	install -d docs/hardware
1.80      harris41  305: 	install $(SOURCE)/doc/hardware/hardware.html docs/hardware/hardware.html
1.26      harris41  306: 	install -d docs/3.1
1.80      harris41  307: 	install $(SOURCE)/doc/build/install.html docs/3.1/index.html
                    308: 	install $(SOURCE)/doc/build/instructions_with_cd.html \
1.52      harris41  309: 	docs/3.1/instructions_with_cd.html
1.80      harris41  310: 	install $(SOURCE)/doc/build/libraryserverconfiguration.gif \
1.52      harris41  311: 	docs/3.1/libraryserverconfiguration.gif
1.80      harris41  312: 	install $(SOURCE)/doc/build/librarysystemsettings.gif \
1.52      harris41  313: 	docs/3.1/librarysystemsettings.gif
1.35      harris41  314: 	install -d docs/cvsupgrade
1.80      harris41  315: 	install $(SOURCE)/doc/build/cvsupgrade.html docs/cvsupgrade/index.html
1.26      harris41  316: 	install -d docs/upgrade
1.80      harris41  317: 	install $(SOURCE)/doc/build/upgrade.html docs/upgrade/index.html
1.26      harris41  318: 	install -d docs/reconfig
1.80      harris41  319: 	install $(SOURCE)/doc/build/reconfig.html docs/reconfig/index.html
1.27      harris41  320: 	install -d docs/3.1/otherfiles
1.80      harris41  321: 	install $(SOURCE)/doc/otherfiles/rpm_list.txt \
1.52      harris41  322: 	docs/3.1/otherfiles/rpm_list.txt
1.80      harris41  323: 	install $(SOURCE)/doc/build/loncapanetwork.html \
                    324: 	docs/loncapanetwork.html
                    325: 	install $(SOURCE)/doc/build/loncapanfs.html docs/loncapanfs.html
                    326: 	install $(SOURCE)/doc/build/loncapaappleshares.html \
1.52      harris41  327: 	docs/loncapaappleshares.html
1.80      harris41  328: 	install $(SOURCE)/doc/build/loncapasqldatabase.html \
1.52      harris41  329: 	docs/loncapasqldatabase.html
1.80      harris41  330: 	install $(SOURCE)/doc/build/loncapapasswords.html \
1.52      harris41  331: 	docs/loncapapasswords.html
1.80      harris41  332: 	install $(SOURCE)/doc/build/loncapapasswordauthentication.html \
1.52      harris41  333: 	docs/loncapapasswordauthentication.html
1.80      harris41  334: 	install $(SOURCE)/doc/build/loncapatimesync.html docs/loncapatimesync.html
                    335: 	install $(SOURCE)/doc/build/loncapamathequivalency.html \
1.52      harris41  336: 	docs/loncapamathequivalency.html
1.27      harris41  337: 	tar czvf install.lon-capa.org_docs.tar.gz docs
                    338: 	rm -Rf docs
1.26      harris41  339: 
1.80      harris41  340: tardist:
                    341: 	cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
                    342: 	perl lpml_parse.pl MANIFEST development default \
                    343: 	'$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' > $(SOURCE)/MANIFEST
                    344: 	cat $(SOURCE)/doc/loncapafiles/buildfiles.lpml | \
                    345: 	perl lpml_parse.pl MANIFEST development default \
                    346: 	'$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' >> $(SOURCE)/MANIFEST
                    347: 	echo 'README' >> $(SOURCE)/MANIFEST
                    348: 	echo 'UPDATE' >> $(SOURCE)/MANIFEST
                    349: 	echo 'TEST' >> $(SOURCE)/MANIFEST
                    350: 	echo '#!/bin/sh' > $(SOURCE)/UPDATE
                    351: 	echo 'cd loncom/build; make build; make install' >> $(SOURCE)/UPDATE
1.81    ! harris41  352: 	echo '#!/bin/sh' > $(SOURCE)/TEST
1.80      harris41  353: 	echo 'cd loncom/build; make test' >> $(SOURCE)/TEST
                    354: 	chmod a+rx $(SOURCE)/UPDATE
                    355: 	chmod a+rx $(SOURCE)/TEST
                    356: 	cp $(SOURCE)/doc/shortest_path_redhat7.2.txt $(SOURCE)/README
                    357: 	cd $(SOURCE); \
                    358: 	tar --numeric-owner --files-from MANIFEST -czf loncapa.tar.gz \
                    359: 	2>WARNINGS || [ "0" == "0" ]
                    360: 	cat $(SOURCE)/WARNINGS | \
                    361: 	xargs --replace=XXX echo '**** WARNING **** XXX' > WARNINGS
                    362: 	rm -f $(SOURCE)/WARNINGS
                    363: 	make warningnote
                    364: 
1.30      harris41  365: cvsreport:
1.52      harris41  366: 
1.1       harris41  367: clean:
1.80      harris41  368: 	rm -f $(SOURCE)/README
                    369: 	rm -f $(SOURCE)/UPDATE
                    370: 	rm -f $(SOURCE)/TEST
                    371: 	rm -f $(SOURCE)/loncapa.tar.gz
1.3       harris41  372: 	rm -Rf HTML
1.8       harris41  373: 	rm -f Makefile.build
                    374: 	rm -f Makefile.install
1.57      harris41  375: 	rm -f Makefile.configinstall
1.55      harris41  376: 	rm -Rf BinaryRoot
                    377: 	rm -Rf SetupBinaryRoot
1.62      harris41  378: 	rm -Rf LON-CAPA-base
1.56      harris41  379: 	rm -f base_rpm_file_list.txt
1.58      harris41  380: 	rm -f base_customizerpm.xml
1.56      harris41  381: 	rm -f setup_rpm_file_list.txt
1.62      harris41  382: 	rm -f docs.tar.gz
                    383: 	rm -Rf docs
1.66      harris41  384: 	rm -f program.pl*
                    385: 	rm -Rf lpmladm.*
1.67      harris41  386: 	make -f Makefile.cvs clean
1.80      harris41  387: 	rm -f WARNINGS

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