Annotation of loncom/build/Makefile, revision 1.93

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

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