Annotation of loncom/build/Makefile, revision 1.161
1.48 harris41 1: # The LearningOnline Network with CAPA
2:
1.161 ! albertel 3: # $Id: Makefile,v 1.160 2004/06/08 15:18:35 albertel Exp $
1.1 harris41 4:
1.129 harris41 5: # TYPICAL USAGE of this Makefile is primarily for two targets:
6: # "make build" and "make install".
7: # Many other targets and features are supported (see the initial
8: # help targets).
9:
10: # ======================================= Default settings for Makefile options
1.79 harris41 11: DISTPROBE=`perl ./distprobe`
12: DIST=$(DISTPROBE)
1.39 harris41 13: CATEGORY="development"
1.80 harris41 14: SOURCE=../..
1.51 harris41 15: TARGET=""
1.55 harris41 16: NORESTORECONF="0"
1.66 harris41 17: HOSTNAME=""
18: LAUNCH=| perl
1.106 harris41 19: QUERYLAUNCH=> /tmp/loncapa_query.pl; perl /tmp/loncapa_query.pl
1.66 harris41 20: OUTSTREAM=>
21: SAVE=program.pl.$(TIMESTAMP)
22: LAUNCHSAVE=$(OUTSTREAM) $(SAVE)
23: METAMTARGET=""
24: MTARGET=""
1.161 ! albertel 25: VERSION=CVS_HEAD
1.142 harris41 26: # The current working definition for "RELEASE" is: changes not in the software,
27: # but in the operating system dependent packaging of the software. Thus, the
28: # generic tarball releases do not need to have a release number specified.
29: RELEASE=1 # As a general rule for now, this is always being set to "1".
1.126 harris41 30: DIRTARGET=loncapa-$(VERSION)
1.143 harris41 31: LOCALAUTHPATH=/home/httpd/lib/perl
1.12 harris41 32:
1.129 harris41 33: # =============================================== Help targets for the Makefile
34: # If 'make' is run without any arguments, the 'help' target is called since
35: # it is the first target.
1.105 harris41 36: help:
1.52 harris41 37: @echo "*** You need to specify a valid target ***"
1.129 harris41 38: @echo "To get a list of valid targets: \"make help_TARGETS\""
39: @echo "To get a list of valid options: \"make help_OPTIONS\""
40: @echo " "
41: @echo "Typically invoked targets are:"
42: @echo " make build"
43: @echo " make install"
44: @echo " make test"
45: @echo " make clean"
46:
47: help_OPTIONS:
48: @echo "* ADJUSTABLE OPTIONS *"
1.105 harris41 49: @echo "(option) DIST can be redhat7, debian, redhat6.2, or default"
1.129 harris41 50: @echo " You probably do not need to specify this; it is"
51: @echo " automatically probed for."
52: @echo "(option) CATEGORY can be 'runtime' or 'development'; currently"
53: @echo " the 'development' setting is the most reliable;"
54: @echo " eventually, production machines should be using the"
55: @echo " 'runtime' settings"
56: @echo "(option) SOURCE is an absolute or relative directory path."
57: @echo " SOURCE corresponds to the root directory of the"
58: @echo " loncapa source release"
59: @echo "(option) TARGET is an absolute or relative directory path."
60: @echo " This is where files will be installed on your system."
61: @echo " Typically, this should be set to nothing (which"
62: @echo " corresponds to the '/' root of the entire filesystem)."
63: @echo "(option) NORESTORECONF, when set to a non-zero value, stops"
64: @echo " filesystem upgrades from overwriting existing "
65: @echo " configuration files. Ordinarily, NORESTORECONF=0, "
66: @echo " because the existing configuration files are safely"
67: @echo " dealt with (or so one hopes... :) )."
68: @echo "(option) HOSTNAME specifies the name of a remote server for"
69: @echo " which a NET_* Makefile target should be launched"
70: @echo "(option) VERSION; especially useful for the 'tardist' target"
71: @echo " this tags the tarball file and internal directories"
72: @echo " with a specific version string (conventionally "
73: @echo " numeric)"
74:
75: help_TARGETS:
76: @echo "*** RUNNING TESTS TO ENSURE SOLID PERFORMANCE ***"
77: @echo "test: test different parts of the LON-CAPA system (TEST_*)."
78: @echo " Makefile-dependent processes as well as horizontal and"
79: @echo " vertical aspects of the LON-CAPA system architecture"
80: @echo " are all tested."
81: @echo "TEST_lpml_scripts: make sure that the system can process"
82: @echo " the Linux Packaging Markup Language."
83: @echo " This is neither horizontal or vertical"
84: @echo " testing. The idea is to make sure that"
85: @echo " the installation software itself works"
86: @echo " as expected."
1.52 harris41 87: @echo "TEST_system_dependencies: make sure that all needed system "
88: @echo " components are active and present "
89: @echo " on the server such as perl modules"
90: @echo " and the MySQL database"
1.129 harris41 91: @echo " (horizontal testing)"
92: @echo "TEST_web_layer: mimic a login and various vertical actions on "
1.52 harris41 93: @echo " a LON-CAPA system"
1.149 albertel 94: @echo "TEST_hosts_and_domain_tab: make sure that a "
95: @echo " loncapa/loncom/hosts.tab and loncapa/loncom/domain.tab"
96: @echo " file is specified for installation"
1.129 harris41 97: @echo "TEST_html2ps: test for the presence of html2ps which is needed"
98: @echo " for making a PDF compilation for pdfdoc"
99: @echo "*** GENERAL TARGETS SUCH AS 'build' AND 'install' ***"
100: @echo "build: compile the source tree"
101: @echo "buildflag: a semaphore that helps educate the user to run"
102: @echo " 'make build' first before running 'make install'"
103: @echo "configinstall: install configuration files and restore with"
104: @echo " prior information"
1.134 albertel 105: @echo "install: install from a ***compiled*** source tree"
1.129 harris41 106: @echo " (see make build) to a specified TARGET destination"
107: @echo " on the filesystem (default setting is TARGET=/)."
108: @echo "rawinstall: just install files, links and directories without"
109: @echo " any bells or whistles (e.g. double-checking"
110: @echo " configurations, fine-tuning webserver, etc.)"
1.149 albertel 111: @echo "hosts_and_domain_tab: install the hosts.tab and domain.tab"
112: @echo " to the filesystem"
1.129 harris41 113: @echo "webserverconf: fine-tune the web server configuration;"
114: @echo " make sure the proper 'Include' statements"
115: @echo " are appended to httpd.conf"
116: @echo "vanillatar: generate top-level files such as README, UPDATE,"
117: @echo " CHECKRPMS, and TEST (needed by tardist)"
118: @echo "tardist: build a tarball that will upgrade the software on a "
119: @echo " system"
120: @echo "sanitycheck: probe for common errors and recommend fixes to"
121: @echo " the user"
1.158 matthew 122: @echo "ntpcheck: test to see if ntp is installed and running."
1.159 matthew 123: @echo "rpmcheck: test to see if rpms known to confict are installed."
1.129 harris41 124: @echo "updatequery: solicit the user for machine configuration"
125: @echo " information; to be incorporated during an update"
126: @echo " procedure (via the UPDATE command)"
127: @echo "postinstall: double-check things after installation"
128: @echo "VERSION: tag the filesystem with version information inside"
1.153 www 129: @echo " /etc/loncapa-release and"
130: @echo " /home/httpd/html/lon-status/version.txt"
1.129 harris41 131: @echo "aboutVERSION: place version information inside about.html"
1.153 www 132: @echo " and loncapa_apache.conf"
1.129 harris41 133: @echo "*** Makefile.* TARGETS BUILT DYNAMICALLY FROM loncapafiles.lpml ***"
134: @echo "Makefile.configinstall: generate a Makefile for configuration"
135: @echo " files; built dynamically from"
136: @echo " loncapafiles.lpml"
137: @echo "Makefile.build: generate a Makefile for compiling"
138: @echo " files inside the source directory; "
139: @echo " Makefile.build is generated from"
140: @echo " loncapafiles.lpml"
141: @echo "Makefile.install: generate a Makefile for installing"
142: @echo " files; built dynamically from"
143: @echo " loncapafiles.lpml"
144: @echo "*** TARGETS FOR OPERATING ON FILESYSTEMS ACROSS THE NETWORK ***"
145: @echo "lpmladm: coordinates username=lpmladm mediated secure shell"
146: @echo " processes; needed for the NET_* targets"
1.149 albertel 147: @echo "NET_hosts_and_domain_tab: install the hosts.tab and domain.tab"
148: @echo " to a filesystem elsewhere"
149: @echo " on the network"
1.129 harris41 150: @echo "NET_webserverconf: fine-tune the web server configuration on a"
151: @echo " filesystem elsewhere on the network"
152: @echo "NET_rawinstall: launch the rawinstall target on a filesystem"
153: @echo " elsewhere on the network"
154: @echo "*** TARGETS FOR MAKING LISTS (MANIFESTS) OF LON-CAPA FILES ***"
155: @echo "MANIFEST_all: generate a list of all files to be included in"
156: @echo " the distributed tarball"
157: @echo "MANIFEST_cvs: essentially a list of all CVS/Entries files used"
158: @echo " for 'time-checking' intelligence"
1.134 albertel 159: @echo "MANIFEST_lpml: a list of all LON-CAPA files to be installed,"
1.129 harris41 160: @echo " compile from, used as building software, and"
161: @echo " testing"
162: @echo "MANIFEST_vanillatar: 'README'-type top-level files that a user"
163: @echo " of the distributed tarball would first"
164: @echo " look at and work with"
165: @echo "*** STATUS REPORT TARGETS ***"
166: @echo "warningnote: analyze the WARNINGS file and produce a synopsis"
167: @echo " and recommended action to the user"
1.52 harris41 168: @echo "HTML: generate an HTML-formatted description of the LON-CAPA"
1.129 harris41 169: @echo " source files"
170: @echo "status: compare the TARGET filesystem with a compiled loncapa "
1.52 harris41 171: @echo " source directory"
172: @echo "statuspost: post the results of "make status" to "
173: @echo " TARGET/home/httpd/html/lon-status/filestatus.html"
174: @echo "rpmstatus: compare the rpms on a system to defined lists "
1.129 harris41 175: @echo " loncapa/doc/otherfiles/cd_rpms and "
176: @echo " loncapa/doc/otherfiles/rpm_list.txt"
177: @echo "rpmstatuspost: post the results of 'make rpmstatus' to "
1.52 harris41 178: @echo " TARGET/home/httpd/html/lon-status/rpmstatus.html"
1.129 harris41 179: @echo "*** ALTERNATIVE PACKAGING TARGETS ***"
180: @echo "RPM: build LON-CAPA-base RPM from loncapa source repository"
181: @echo " (still under development)"
182: @echo "DPKG: build a loncapa Debian package from loncapa source"
183: @echo " repository (still under development)"
184: @echo "base_rpm_file_list: create a file listing to be used for"
185: @echo " generating an RPM software package"
186: @echo "BinaryRoot: create a BinaryRoot directory to be used for"
187: @echo " generating an RPM software package"
188: @echo "*** MASTER DOCUMENTATION TARGETS ***"
189: @echo "doc: generate web-page documentation for install.lon-capa.org"
190: @echo " (and eventually for documentation on installed machines)"
191: @echo "pdfdoc: make a PDF-formatted compilation of all installation"
192: @echo " documentation"
193: @echo "*** KEEPING THINGS CLEAN ***"
194: @echo "clean: remove any files that might (even by remote chance)"
195: @echo " interfere with rebuilding/recompiling software"
196: @echo "reallyclean: remove all files that were generated during"
197: @echo " building or compilation of the software"
1.136 harris41 198: @echo "uninstall: remove all directories that do not contain files"
199: @echo " from other software packages and that do not contain"
200: @echo " student and instructor data; NOTE THAT THIS IS"
201: @echo " INTERACTIVE--you will be given a final chance"
202: @echo " to look at what will and will not be deleted."
203: @echo " Still, be careful. This is a very new target and is"
204: @echo " an alpha-level software feature for now."
205: @echo "backup: rolls a tarball backup of all important student and "
206: @echo " instructor data (NOT YET IMPLEMENTED)"
207: @echo "restore: reseeds a LON-CAPA server with tarball backups "
208: @echo " generated by \"make backup\" (NOT YET IMPLEMENTED)"
1.143 harris41 209: @echo "*** AUXILIARY TESTS ***"
210: @echo "localauth: tests to see if localauth exists or not and run"
211: @echo " appropriate tests"
1.129 harris41 212: @echo "*** A HELPFUL DEPENDENCY ***"
213: @echo "alwaysrun: blank target that is a dependency for targets"
214: @echo " that should \"always run\""
215:
216: # =========================== *** RUNNING TESTS TO ENSURE SOLID PERFORMANCE ***
1.1 harris41 217:
1.52 harris41 218: test: TEST_lpml_scripts TEST_system_dependencies TEST_web_layer
1.41 harris41 219: @echo "ALL SYSTEM DEPENDENCY TESTS SUCCESSFUL"
220:
221: TEST_system_dependencies:
1.52 harris41 222: @echo "TESTING SYSTEM DEPENDENCIES"
1.41 harris41 223: cd system_dependencies; make
1.44 harris41 224:
225: TEST_lpml_scripts:
1.52 harris41 226: @echo "TESTING LPML INSTALLATION CODE"
1.44 harris41 227: cd ../test; perl filecomparetest.pl
1.41 harris41 228:
1.52 harris41 229: TEST_web_layer:
1.77 harris41 230: @echo "TESTING WEB LAYER"
231: cd weblayer_test; make
1.2 harris41 232:
1.63 harris41 233: TEST_hosts_tab:
234: @echo "Testing hosts.tab"
1.120 albertel 235: @if (test -e ../hosts.tab); then \
1.129 harris41 236: echo "there is a defined link or file; assume okay"; \
1.63 harris41 237: else echo "**** ERROR **** hosts.tab not defined!" && \
238: echo -n "You need to do one of the following within your " && \
1.92 harris41 239: echo "CVS repository (cd loncapa/loncom)" && \
240: echo " 1) ln -s production_hosts.tab hosts.tab" && \
241: echo " 2) ln -s development_hosts.tab hosts.tab" && \
242: echo "or 3) ln -s rawhide_hosts.tab hosts.tab" && \
1.63 harris41 243: echo "(you most likely want option #1, production_hosts.tab)" && \
244: exit 1; \
245: fi
1.64 harris41 246:
1.149 albertel 247: TEST_domain_tab:
248: @echo "Testing domain.tab"
249: @if (test -e ../domain.tab); then \
250: echo "there is a defined link or file; assume okay"; \
251: else echo "**** ERROR **** domain.tab not defined!" && \
252: echo -n "You need to do one of the following within your " && \
253: echo "CVS repository (cd loncapa/loncom)" && \
254: echo " 1) ln -s production_domain.tab domain.tab" && \
255: echo " 2) ln -s development_domain.tab domain.tab" && \
256: echo "or 3) ln -s rawhide_domain.tab domain.tab" && \
257: echo "(you most likely want option #1, production_domain.tab)" && \
258: exit 1; \
259: fi
260:
1.129 harris41 261: TEST_html2ps:
262: @if (test -e /usr/local/html2ps/bin/html2ps); then \
263: echo "I can find html2ps; assume okay"; \
264: else \
265: echo "**** ERROR **** cannot find /usr/local/html2ps/bin/html2ps!" && \
266: echo "Please visit http://www.tdb.uu.se/~jan/html2ps.html" && \
267: exit 1; \
268: fi
269:
270: # ======================= *** GENERAL TARGETS SUCH AS 'build' AND 'install' ***
271:
272: build: Makefile.build pod2html.sh pod2man.sh
273: install -d $(SOURCE)/doc/man
274: install -d $(SOURCE)/doc/scripts
275: install -d $(SOURCE)/doc/lib/perl/Apache
276: echo -n "" > WARNINGS
277: make -f Makefile.build all
278: echo '1' > buildflag
279: make warningnote
280:
281: buildflag:
282: @echo "**** ERROR **** You need to run 'make build' first" > WARNINGS
283: make warningnote
284: @need_to_run_make_build_first 2>/dev/null
285:
286: configinstall: Makefile.configinstall
287: make -f Makefile.configinstall SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
288: configfiles
289: if (test "0" = $(NORESTORECONF)); then \
290: perl loncaparestoreconfigurations suffix .lpmlnew; fi
291:
1.149 albertel 292: install: buildflag VERSION TEST_hosts_tab TEST_domain_tab Makefile.install Makefile
1.129 harris41 293: echo -n "" > WARNINGS
294: make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
295: directories
296: make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" files
297: make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" links
298: make SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
299: NORESTORECONF="$(NORESTORECONF)" configinstall
300: make postinstall
301: make warningnote
1.151 albertel 302: @echo "You can now run 'make test' to see if your system is ready to go!"
303: # @echo "NOTE THAT YOUR SYSTEM MUST HAVE MYSQL WITH A USER=\"www\" AND"
304: # @echo -n "PASSWORD=\"localhostkey\" FOR www\@localhost"
305: # @echo -n "(YOU MAY NEED TO REINITIALIZE YOUR MYSQL www\@localhost USER)"
306: # @echo -n "Please see http://install.lon-capa.org/ for more information"
1.129 harris41 307:
308: rawinstall: VERSION Makefile.install Makefile
309: echo -n "" > WARNINGS
310: make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
311: directories
312: make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" files
313: make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" links
314: make SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
315: NORESTORECONF="$(NORESTORECONF)" configinstall
1.66 harris41 316:
1.149 albertel 317: hosts_and_domain_tab: TEST_hosts_tab TEST_domain_tab
1.80 harris41 318: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
319: perl xfml_parse.pl $(SOURCE)/doc/loncapafiles/valid_hosts.xfml | \
1.64 harris41 320: perl lpml_parse.pl install $(CATEGORY) $(DIST) "$(SOURCE)" \
321: "$(TARGET)" > Makefile.install
1.66 harris41 322: make -f Makefile.install directories
1.64 harris41 323: make -f Makefile.install files
1.149 albertel 324: @echo "If hosts.tab or domain.tab has changed, restart httpd and loncontrol:"
1.64 harris41 325: @echo " /etc/rc.d/init.d/httpd restart"
326: @echo " /etc/rc.d/init.d/loncontrol restart"
327:
1.129 harris41 328: webserverconf:
329: cat $(SOURCE)/doc/loncapafiles/webserver.piml | \
330: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH)
331:
332: # ---------------- Top-level files such as README, UPDATE, CHECKRPMS, and TEST
333: vanillatar:
334: # --------------------------- Point UPDATE to the internal make process
335: echo '#!/bin/sh' > $(SOURCE)/UPDATE
336: echo 'touch loncom/build/WARNINGS' >> $(SOURCE)/UPDATE;
337: echo 'ln -s loncom/build/WARNINGS WARNINGS' >> $(SOURCE)/UPDATE;
338: echo 'cd loncom/build; make build' >> $(SOURCE)/UPDATE
339: echo 'make rawinstall' >> $(SOURCE)/UPDATE
340: echo 'make configinstall' >> $(SOURCE)/UPDATE
341: echo 'make updatequery' >> $(SOURCE)/UPDATE
1.149 albertel 342: echo 'make hosts_and_domain_tab' >> $(SOURCE)/UPDATE
1.129 harris41 343: echo 'make postinstall' >> $(SOURCE)/UPDATE
344: echo 'make aboutVERSION' >> $(SOURCE)/UPDATE
345: echo 'make warningnote' >> $(SOURCE)/UPDATE
346: # ----------------------------- Point TEST to the internal make process
347: echo '#!/bin/sh' > $(SOURCE)/TEST
348: echo 'cd loncom/build; make test' >> $(SOURCE)/TEST
1.132 harris41 349: echo 'cd system_dependencies || cd loncom/build/system_dependencies; cp -v CPAN_STATUS_REPORT ../../../CPAN_STATUS_REPORT' >> $(SOURCE)/TEST
1.129 harris41 350: # ----------------------------- Copy CHECKRPMS to the vanilla top-level
351: cp -v $(SOURCE)/loncom/build/CHECKRPMS $(SOURCE)/CHECKRPMS
352: # ----------------------- vanilla executables must indeed be executable
353: chmod a+rx $(SOURCE)/UPDATE
354: chmod a+rx $(SOURCE)/TEST
355: chmod a+rx $(SOURCE)/CHECKRPMS
356: # -------------------------------- Copy README to the vanilla top-level
1.146 albertel 357: #cp -v $(SOURCE)/doc/shortest_path_redhat7.2.txt $(SOURCE)/README
1.129 harris41 358:
359: tardist:
360: make MANIFEST_all
361: make vanillatar
362: # -------------------------------------------------------- Make tardist
363: @cd $(SOURCE); \
364: if (test -h $(DIRTARGET)); then \
365: echo "$(DIRTARGET) link already defined; assume okay"; \
366: else \
367: ln -s . $(DIRTARGET); \
368: fi
369: cp -v $(SOURCE)/loncom/license/about.html \
370: $(SOURCE)/loncom/license/about.html.orig
1.153 www 371: cp -v $(SOURCE)/loncom/loncapa_apache.conf \
372: $(SOURCE)/loncom/loncapa_apache.conf.orig
1.129 harris41 373: make aboutVERSION
374: cd $(SOURCE); \
375: tar --no-recursion --numeric-owner --files-from MANIFEST \
376: -h -czf $(DIRTARGET).tar.gz 2>tar_WARNINGS || [ "0" == "0" ]
377: mv -v $(SOURCE)/loncom/license/about.html.orig \
378: $(SOURCE)/loncom/license/about.html
1.153 www 379: mv -v $(SOURCE)/loncom/loncapa_apache.conf.orig \
380: $(SOURCE)/loncom/loncapa_apache.conf
1.129 harris41 381: cat $(SOURCE)/tar_WARNINGS | \
382: xargs --replace=XXX echo '**** WARNING **** XXX' > WARNINGS
383: rm -f $(SOURCE)/tar_WARNINGS
384: make warningnote
385:
1.158 matthew 386: ntpcheck:
387: cat $(SOURCE)/doc/loncapafiles/ntpcheck.piml | \
388: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
389: tee -a WARNINGS
390:
1.159 matthew 391: rpmcheck:
392: cat $(SOURCE)/doc/loncapafiles/rpmcheck.piml | \
393: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
394: tee -a WARNINGS
395:
1.129 harris41 396: sanitycheck:
397: cat $(SOURCE)/doc/loncapafiles/sanitycheck.piml | \
398: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
399: tee -a WARNINGS
400:
401: updatequery:
402: cat $(SOURCE)/doc/loncapafiles/updatequery.piml | \
403: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(QUERYLAUNCH)
404:
1.156 matthew 405: accesscount_seed:
406: cat $(SOURCE)/doc/loncapafiles/accesscount_seed.piml | \
407: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
408: tee -a WARNINGS
409:
1.130 albertel 410: reseval_fixup:
411: cat $(SOURCE)/doc/loncapafiles/reseval_fixup.piml | \
412: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
413: tee -a WARNINGS
414:
1.137 albertel 415: clearoutoldspreadsheetcache:
416: cat $(SOURCE)/doc/loncapafiles/clearoutoldspreadsheetcache.piml | \
417: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
418: tee -a WARNINGS
419:
1.133 harris41 420: sendmail_fix:
421: cat $(SOURCE)/doc/loncapafiles/sendmail_fix.piml | \
422: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
423: tee -a WARNINGS
424:
1.157 www 425: ownership_fix:
426: cat $(SOURCE)/doc/loncapafiles/ownership_fix.piml | \
427: perl piml_parse.pl $(CATEGORY) $(DIST) "$(TARGET)" $(LAUNCH) | \
428: tee -a WARNINGS
429:
1.129 harris41 430: postinstall:
431: make webserverconf
1.130 albertel 432: make reseval_fixup
1.156 matthew 433: make accesscount_seed
1.137 albertel 434: make clearoutoldspreadsheetcache
1.159 matthew 435: make rpmcheck
1.158 matthew 436: make ntpcheck
1.129 harris41 437: make sanitycheck
1.133 harris41 438: make sendmail_fix
1.157 www 439: make ownership_fix
1.129 harris41 440:
441: VERSION:
442: install -d $(TARGET)/etc
443: echo -n "LON-CAPA release $(VERSION)-" > $(TARGET)/etc/loncapa-release
444: date +"%Y%m%d" >> $(TARGET)/etc/loncapa-release
1.153 www 445: install -d $(TARGET)/home/httpd/html/lon-status
446: echo -n "$(VERSION)-" > $(TARGET)/home/httpd/html/lon-status/version.txt
447: date +"%Y%m%d" >> $(TARGET)/home/httpd/html/lon-status/version.txt
1.129 harris41 448:
449: aboutVERSION:
450: cat $(SOURCE)/loncom/license/about.html | \
451: perl -e '$$d=`date +"%Y%m%d"`;chomp($$d);while(<>){s/\<\!\-\- VERSION \-\-\>/$(VERSION)-$$d/; print;}' > \
452: $(SOURCE)/loncom/license/about.html.new
453: mv -v $(SOURCE)/loncom/license/about.html.new \
454: $(SOURCE)/loncom/license/about.html
1.153 www 455: cat $(SOURCE)/loncom/loncapa_apache.conf | \
456: perl -e '$$d=`date +"%Y%m%d"`;chomp($$d);while(<>){s/\<\!\-\- VERSION \-\-\>/$(VERSION)-$$d/; print;}' > \
457: $(SOURCE)/loncom/loncapa_apache.conf.new
458: mv -v $(SOURCE)/loncom/loncapa_apache.conf.new \
459: $(SOURCE)/loncom/loncapa_apache.conf
1.129 harris41 460:
461: # ========= *** Makefile.* TARGETS BUILT DYNAMICALLY FROM loncapafiles.lpml ***
462:
463: Makefile.configinstall: $(SOURCE)/doc/loncapafiles/loncapafiles.lpml \
464: lpml_parse.pl
465: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
466: perl lpml_parse.pl configinstall $(CATEGORY) $(DIST) "$(SOURCE)" \
467: "$(TARGET)" > Makefile.configinstall
468:
469: Makefile.build: $(SOURCE)/doc/loncapafiles/loncapafiles.lpml lpml_parse.pl
470: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
471: perl lpml_parse.pl build $(CATEGORY) $(DIST) "$(SOURCE)" "$(TARGET)" \
472: > Makefile.build
473:
474: Makefile.install: alwaysrun
475: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
476: perl lpml_parse.pl install $(CATEGORY) $(DIST) "$(SOURCE)" \
477: "$(TARGET)" > Makefile.install
478:
479: # ============= *** TARGETS FOR OPERATING ON FILESYSTEMS ACROSS THE NETWORK ***
480:
1.66 harris41 481: lpmladm:
482: @if (test $(METAMTARGET) = "TRANSPORT"); then \
483: echo "Transporting to $(HOSTNAME)"; \
484: sudo make DIST=$(DIST) CATEGORY=$(CATEGORY) \
485: SOURCE="$(SOURCE)" \
486: TARGET="lpmladm.$(TIMESTAMP)" \
487: NORESTORECONF="$(NORESTORECONF)" "$(MTARGET)"; \
488: cd lpmladm.$(TIMESTAMP); \
489: sudo tar czvf ../tarball$(TIMESTAMP).tar.gz .; \
490: cd ..; scp tarball$(TIMESTAMP).tar.gz \
491: lpmladm@$(HOSTNAME):~/tarball$(TIMESTAMP).tar.gz; \
492: ssh lpmladm@$(HOSTNAME) sudo mv tarball$(TIMESTAMP).tar.gz /; \
493: ssh lpmladm@$(HOSTNAME) sudo tar -x -z -v -C / \
494: -p --same-owner -f \
495: /tarball$(TIMESTAMP).tar.gz; \
496: ssh lpmladm@$(HOSTNAME) sudo rm -f \
497: /tarball$(TIMESTAMP).tar.gz; \
498: elif (test $(METAMTARGET) = "LAUNCH"); then \
499: echo "Launching process on $(HOSTNAME)"; \
500: LAUNCHSAVE=$(OUTSTREAM) $(SAVE); \
501: make DIST=$(DIST) CATEGORY=$(CATEGORY) SOURCE="$(SOURCE)" \
502: TARGET="$(TARGET)" NORESTORECONF="$(NORESTORECONF)" \
503: LAUNCH="$(LAUNCHSAVE)" "$(MTARGET)"; \
504: scp $(SAVE) lpmladm@$(HOSTNAME):~/$(SAVE); \
505: ssh lpmladm@$(HOSTNAME) sudo perl $(SAVE); \
506: ssh lpmladm@$(HOSTNAME) sudo rm -f $(SAVE); \
507: else \
508: echo "**** ERROR **** Incorrect METAMTARGET"; \
509: fi
510:
1.149 albertel 511: NET_hosts_and_domain_tab:
1.129 harris41 512: make TIMESTAMP=`date +"%s"` METAMTARGET="TRANSPORT" \
1.149 albertel 513: MTARGET="hosts_and_domain_tab" HOSTNAME="$(HOSTNAME)" lpmladm
1.129 harris41 514:
515: NET_webserverconf:
516: make TIMESTAMP=`date +"%s"` METAMTARGET="LAUNCH" \
517: MTARGET="webserverconf" HOSTNAME="$(HOSTNAME)" lpmladm
518:
519: NET_rawinstall:
520: make TIMESTAMP=`date +"%s"` METAMTARGET="TRANSPORT" \
521: MTARGET="rawinstall" HOSTNAME="$(HOSTNAME)" lpmladm
522:
523: # ============== *** TARGETS FOR MAKING LISTS (MANIFESTS) OF LON-CAPA FILES ***
524:
525: MANIFEST_all:
526: # --------------------------------------------------------- start clean
527: rm -f $(SOURCE)/MANIFEST
528: make MANIFEST_lpml
529: make MANIFEST_vanillatar
530: make MANIFEST_cvs
531: # ---------------------------------- might as well include the MANIFEST
532: echo 'MANIFEST' >> $(SOURCE)/MANIFEST
533: # ------------------------------------------ hosts.tab are belong to us
534: echo 'loncom/rawhide_hosts.tab' >> $(SOURCE)/MANIFEST
535: echo 'loncom/production_hosts.tab' >> $(SOURCE)/MANIFEST
536: echo 'loncom/development_hosts.tab' >> $(SOURCE)/MANIFEST
1.147 albertel 537: echo 'loncom/production_domain.tab' >> $(SOURCE)/MANIFEST
538: echo 'loncom/development_domain.tab' >> $(SOURCE)/MANIFEST
1.129 harris41 539: # ------------------ Files needed for dynamically generated directories
540: echo 'doc/man' >> $(SOURCE)/MANIFEST
541: echo 'doc/lib' >> $(SOURCE)/MANIFEST
542: echo 'doc/lib/perl' >> $(SOURCE)/MANIFEST
543: echo 'doc/lib/perl/Apache' >> $(SOURCE)/MANIFEST
544: echo 'doc/scripts' >> $(SOURCE)/MANIFEST
545: # --------------------------------------------------- Clean up MANIFEST
546: cd $(SOURCE); \
547: sort MANIFEST | perl -nle 'print "$(DIRTARGET)/$$_"' | \
548: perl -nle 's/\w+\/\.\.\///g;s/\w+\/\.\.\///g;print' | \
549: perl -nle 's/\w+\/\.\.\///g;s/\w+\/\.\.\///g;print' | \
550: perl -nle 's/\w+\/\.\.\///g;s/\w+\/\.\.\///g;print' | \
551: perl -nle 's/\/\.\//\//g;print' | sort | uniq > \
552: MANIFEST_loncapa
553: cd $(SOURCE); mv -v MANIFEST_loncapa MANIFEST
554:
555: # --------------- MANIFEST files with important CVS versioning/date information
556: MANIFEST_cvs:
557: # ------ CVS/Entries directories to retain 'time-checking' intelligence
558: cd $(SOURCE); find . -type f -name 'Entries' | grep 'CVS/Entries' >> \
559: MANIFEST
560:
561: # ------------------- MANIFEST the building, testing and standard loncapa files
562: MANIFEST_lpml:
563: cat $(SOURCE)/doc/loncapafiles/buildfiles.lpml | \
564: perl lpml_parse.pl MANIFEST development default \
565: '$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' >> $(SOURCE)/MANIFEST
566: cat $(SOURCE)/doc/loncapafiles/testfiles.lpml | \
1.140 harris41 567: perl lpml_parse.pl MANIFEST development default \
568: '$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' >> $(SOURCE)/MANIFEST
569: cat $(SOURCE)/doc/loncapafiles/installfiles.lpml | \
1.129 harris41 570: perl lpml_parse.pl MANIFEST development default \
571: '$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' >> $(SOURCE)/MANIFEST
572: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
573: perl lpml_parse.pl MANIFEST development default \
574: '$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' >> $(SOURCE)/MANIFEST
575:
576: # ------------ Files for top-level (the vanilla layer that the user first sees)
577: MANIFEST_vanillatar:
578: echo 'README' >> $(SOURCE)/MANIFEST
579: echo 'UPDATE' >> $(SOURCE)/MANIFEST
580: echo 'TEST' >> $(SOURCE)/MANIFEST
581: echo 'CHECKRPMS' >> $(SOURCE)/MANIFEST
582:
583: # =============================================== *** STATUS REPORT TARGETS ***
584:
585: warningnote:
586: @if (test -s WARNINGS); then \
587: W=`grep -c '\*\*\*\* WARNING' WARNINGS`; \
588: E=`grep -c '\*\*\*\* ERROR' WARNINGS`; \
589: N=`grep -c '\*\*\*\* NOTE' WARNINGS`; \
590: echo "---> $$W WARNINGS ENCOUNTERED! "; \
591: echo "---> $$E ERRORS ENCOUNTERED! "; \
592: echo "---> $$N NOTES ENCOUNTERED! "; \
593: echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
594: echo "!!!! Please read the WARNINGS file !!!!"; \
595: echo "!!!! to make sure everything is !!!!"; \
596: echo "!!!! correct and taken care of !!!!"; \
597: echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
598: fi
599:
1.3 harris41 600: HTML:
601: install -d HTML
1.80 harris41 602: cp $(SOURCE)/doc/loncapafiles/*.gif HTML
603: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
604: perl lpml_parse.pl html development default "$(SOURCE)" '$(TARGET)' \
605: > HTML/index.html
1.3 harris41 606:
1.8 harris41 607: status:
1.7 harris41 608: install -d HTML
1.80 harris41 609: cp $(SOURCE)/doc/loncapafiles/*.gif HTML
610: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
611: perl lpml_parse.pl html $(CATEGORY) $(DIST) "$(SOURCE)" "($TARGET)" | \
1.49 harris41 612: perl lpml_html_posteval.pl > \
1.39 harris41 613: HTML/filestatus.html
1.48 harris41 614:
1.22 harris41 615: statuspost: status
1.80 harris41 616: cp $(SOURCE)/doc/loncapafiles/*.gif \
617: $(TARGET)/home/httpd/html/lon-status
1.52 harris41 618: cp HTML/filestatus.html \
619: $(TARGET)/home/httpd/html/lon-status/filestatus.html
1.22 harris41 620:
1.33 harris41 621: rpmstatus:
622: install -d RPMSTATUS
1.52 harris41 623: rpm -qa --queryformat \
624: '%{NAME}\t%{VERSION}\t%{RELEASE}\t%{BUILDTIME}\n' | sort > \
625: RPMSTATUS/current.tmp
1.80 harris41 626: cat $(SOURCE)/doc/otherfiles/cd_rpms.txt > RPMSTATUS/standard.tmp
627: cat $(SOURCE)/doc/otherfiles/rpm_list.txt > RPMSTATUS/expected.tmp
1.52 harris41 628: perl rpmparse.pl RPMSTATUS/standard.tmp RPMSTATUS/current.tmp \
629: RPMSTATUS/expected.tmp > RPMSTATUS/rpmstatus.html
1.33 harris41 630:
631: rpmstatuspost: rpmstatus
632: cp RPMSTATUS/rpmstatus.html /home/httpd/html/lon-status/rpmstatus.html
633:
1.129 harris41 634: # ======================================= *** ALTERNATIVE PACKAGING TARGETS ***
1.8 harris41 635:
1.55 harris41 636: RPM: BinaryRoot base_rpm_file_list
1.80 harris41 637: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
1.63 harris41 638: perl lpml_parse.pl make_rpm $(CATEGORY) $(DIST) $(SOURCE) $(TARGET) \
639: > base_customizerpm.xml
1.142 harris41 640: cat base_rpm_file_list.txt | perl make_rpm.pl base $(VERSION) \
641: $(RELEASE) '' '' BinaryRoot base_customizerpm.xml
1.55 harris41 642:
1.60 harris41 643: DPKG:
1.82 harris41 644: make TARGET='lon-capa-$(VERSION)' NORESTORECONF='1' install
1.60 harris41 645: @echo "You will next need to follow instructions at:"
646: @echo "http://people.debian.org/~jaldhar/make_package1.html"
647: @echo "A directory with a snapshot of the debian package files"
648: @echo "is LON-CAPA-base."
1.82 harris41 649: # What DPKG steps need to happen (for future implementation):
650: # export EMAIL="" ... probably sharrison@mail.lon-capa.org
651: # deb-make
652: # edit debian/control
653: # make debian/dirs file
654: # make debian/copyright file
655: # debian/README.debian... point them to LON-CAPA URLS
656: # debian/changelog
657: # debian/conffiles
658: # debuild
659: # and maybe do some GPG-related steps around here
1.55 harris41 660:
661: base_rpm_file_list:
1.80 harris41 662: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
1.55 harris41 663: perl lpml_parse.pl rpm_file_list $(CATEGORY) $(DIST) $(SOURCE) \
664: 'BinaryRoot' | sort > base_rpm_file_list.txt
1.6 harris41 665:
1.55 harris41 666: BinaryRoot: base_rpm_file_list
667: make TARGET='BinaryRoot' NORESTORECONF='1' install
1.23 harris41 668:
1.129 harris41 669: # ======================================== *** MASTER DOCUMENTATION TARGETS ***
670:
1.62 harris41 671: # Generates CVS:loncom/build/docs; root location of install.lon-capa.org
672: doc:
673: install -d docs
1.99 harris41 674: @if (test -e installation_manual.pdf); then \
675: cp -vf installation_manual.pdf docs/.; \
676: else \
677: touch docs/installation_manual.pdf; \
678: fi
1.62 harris41 679: install -m 0755 -d docs/icons
1.80 harris41 680: install -m 0644 $(SOURCE)/doc/icons/[^C][^V]* docs/icons
1.62 harris41 681: install -m 0755 -d docs/reconfig
1.99 harris41 682: cd docs; ln -fs installation_manual.pdf index.pdf
683: cd docs/reconfig; ln -fs ../installation_manual.pdf index.pdf
1.80 harris41 684: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
685: $(SOURCE)/doc/build/reconfig.html > docs/reconfig/index.html
1.62 harris41 686: install -m 0755 -d docs/reconfig/confexamples
1.80 harris41 687: install -m 0644 $(SOURCE)/doc/build/confexamples/[^C][^V]* \
1.62 harris41 688: docs/reconfig/confexamples
1.80 harris41 689: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
690: $(SOURCE)/doc/build/installindex.html > docs/index.html
1.67 harris41 691: install -m 0755 -d docs/license
1.99 harris41 692: cd docs/license; ln -fs ../installation_manual.pdf index.pdf
1.80 harris41 693: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
694: $(SOURCE)/doc/build/license.html > docs/license/index.html
1.67 harris41 695: install -m 0755 -d docs/contact
1.99 harris41 696: cd docs/contact; ln -fs ../installation_manual.pdf index.pdf
1.80 harris41 697: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
698: $(SOURCE)/doc/build/contact.html > docs/contact/index.html
1.68 harris41 699: install -m 0755 -d docs/faq
1.99 harris41 700: cd docs/faq; ln -fs ../installation_manual.pdf index.pdf
1.80 harris41 701: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
702: $(SOURCE)/doc/build/faq.html > docs/faq/index.html
1.69 harris41 703: install -m 0755 -d docs/downloads
1.99 harris41 704: cd docs/downloads; ln -fs ../installation_manual.pdf download.pdf
1.80 harris41 705: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
706: $(SOURCE)/doc/build/download.html > docs/downloads/index.html
1.69 harris41 707: install -m 0755 -d docs/install
1.99 harris41 708: cd docs/install; ln -fs ../installation_manual.pdf install.pdf
1.80 harris41 709: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
710: $(SOURCE)/doc/build/install.html > docs/install/index.html
1.125 harris41 711: cp -v $(SOURCE)/doc/install/redhat7.3/new_install_rh73.html \
712: docs/install/rh73.html
1.127 harris41 713: cp -v $(SOURCE)/doc/install/redhat7.3/new_install_rh73.html \
1.128 harris41 714: docs/downloads/rh73.html
1.69 harris41 715: install -m 0755 -d docs/upgrade
1.99 harris41 716: cd docs/upgrade; ln -fs ../installation_manual.pdf upgrade.pdf
1.80 harris41 717: perl doc_template.pl $(SOURCE)/doc/templates/template.html \
718: $(SOURCE)/doc/build/upgrade.html > docs/upgrade/index.html
1.62 harris41 719: cd docs; tar czvpf ../docs.tar.gz .
720:
1.99 harris41 721: pdfdoc: TEST_html2ps
722: install -d pdfdoc
723: /usr/local/html2ps/bin/html2ps -D \
724: $(SOURCE)/doc/build/installindex_noform.html > pdfdoc/installindex.ps
725: /usr/local/html2ps/bin/html2ps -D \
726: $(SOURCE)/doc/build/reconfig.html | \
727: perl -nle 's/\[EXAMPLE\]/\[EXAMPLE \(at end of document\)\]/g;print' \
728: > pdfdoc/reconfig.ps
729: /usr/local/html2ps/bin/html2ps -D \
730: $(SOURCE)/doc/build/install.html > pdfdoc/install.ps
731: /usr/local/html2ps/bin/html2ps -D \
732: $(SOURCE)/doc/build/upgrade.html > pdfdoc/upgrade.ps
733: /usr/local/html2ps/bin/html2ps -D \
734: $(SOURCE)/doc/build/faq.html > pdfdoc/faq.ps
735: /usr/local/html2ps/bin/html2ps -D \
736: $(SOURCE)/doc/build/download.html > pdfdoc/download.ps
737: /usr/local/html2ps/bin/html2ps -D \
738: $(SOURCE)/doc/build/contact.html > pdfdoc/contact.ps
739: /usr/local/html2ps/bin/html2ps -D \
740: $(SOURCE)/doc/build/license.html > pdfdoc/license.ps
741: # This creates a bad confexamples.ps... so take the long way around
742: # cd $(SOURCE)/doc/build/confexamples; \
743: # mpage -P- -1 -H [^C]* > ../../../loncom/build/pdfdoc/confexamples.ps
744: install -d pdfdoc/confexamples
745: cd $(SOURCE)/doc/build/confexamples; \
1.129 harris41 746: find . -type f | cut -b3- | grep -v '^C' | grep -v 'keyword' | \
747: perl -nle \
1.99 harris41 748: '`mpage -P- -1 -H $$_ > ../../../loncom/build/pdfdoc/confexamples/$$_.ps`;'
749: echo '' > pdfdoc/contents.txt
750: echo '' >> pdfdoc/contents.txt
751: echo ' The Learning Online Network' >> pdfdoc/contents.txt
752: echo ' with the' >> pdfdoc/contents.txt
753: echo ' Computer-Assisted Personalized Approach' >> \
754: pdfdoc/contents.txt
755: echo '' >> pdfdoc/contents.txt
756: echo '' >> pdfdoc/contents.txt
757: echo 'CONTENTS' >> pdfdoc/contents.txt
758: echo '--------' >> pdfdoc/contents.txt
759: echo 'Opening' >> pdfdoc/contents.txt
760: echo 'Configuration' >> pdfdoc/contents.txt
761: echo 'Installation' >> pdfdoc/contents.txt
762: echo 'Upgrading a LON-CAPA Server' >> pdfdoc/contents.txt
763: echo 'FAQ' >> pdfdoc/contents.txt
764: echo 'Download' >> pdfdoc/contents.txt
765: echo 'Contact Information' >> pdfdoc/contents.txt
766: echo 'License Information' >> pdfdoc/contents.txt
767: echo 'Configuration Examples' >> pdfdoc/contents.txt
768: mpage -P- -1 \
769: pdfdoc/contents.txt \
770: pdfdoc/installindex.ps \
771: pdfdoc/reconfig.ps \
772: pdfdoc/install.ps \
773: pdfdoc/upgrade.ps \
774: pdfdoc/faq.ps \
775: pdfdoc/download.ps \
776: pdfdoc/contact.ps \
777: pdfdoc/license.ps \
778: pdfdoc/confexamples/*.ps \
779: > pdfdoc/installation_manual.ps
780: ps2pdf pdfdoc/installation_manual.ps pdfdoc/installation_manual.pdf
781: mv -vf pdfdoc/installation_manual.pdf .
782:
1.129 harris41 783: # ================================================ *** KEEPING THINGS CLEAN ***
1.52 harris41 784:
1.1 harris41 785: clean:
1.129 harris41 786: rm -f buildflag
1.112 harris41 787: rm -Rf HTML
788: rm -f installation_manual.pdf
789: rm -f Makefile.build
790: rm -f Makefile.install
791: rm -f Makefile.configinstall
792: rm -Rf BinaryRoot
793: rm -Rf SetupBinaryRoot
794: rm -Rf LON-CAPA-base
795: rm -f base_rpm_file_list.txt
796: rm -f base_customizerpm.xml
797: rm -f setup_rpm_file_list.txt
798: rm -f docs.tar.gz
799: rm -Rf docs
800: rm -Rf pdfdoc
801: rm -f program.pl*
802: rm -Rf lpmladm.*
803: rm -f WARNINGS
1.131 harris41 804: rm -f CPAN_STATUS_REPORT
1.114 harris41 805: rm -f $(SOURCE)/loncom/build/hosts.tab
1.112 harris41 806:
807: reallyclean:
1.129 harris41 808: rm -f buildflag
1.80 harris41 809: rm -f $(SOURCE)/README
810: rm -f $(SOURCE)/UPDATE
811: rm -f $(SOURCE)/TEST
1.105 harris41 812: rm -f $(SOURCE)/MANIFEST
1.129 harris41 813: rm -f $(SOURCE)/MANIFEST_loncapa
1.105 harris41 814: rm -f $(SOURCE)/loncapa
1.114 harris41 815: rm -f $(SOURCE)/loncom/build/hosts.tab
1.80 harris41 816: rm -f $(SOURCE)/loncapa.tar.gz
1.3 harris41 817: rm -Rf HTML
1.99 harris41 818: rm -f installation_manual.pdf
1.8 harris41 819: rm -f Makefile.build
820: rm -f Makefile.install
1.57 harris41 821: rm -f Makefile.configinstall
1.55 harris41 822: rm -Rf BinaryRoot
823: rm -Rf SetupBinaryRoot
1.62 harris41 824: rm -Rf LON-CAPA-base
1.56 harris41 825: rm -f base_rpm_file_list.txt
1.58 harris41 826: rm -f base_customizerpm.xml
1.56 harris41 827: rm -f setup_rpm_file_list.txt
1.62 harris41 828: rm -f docs.tar.gz
829: rm -Rf docs
1.99 harris41 830: rm -Rf pdfdoc
1.66 harris41 831: rm -f program.pl*
832: rm -Rf lpmladm.*
1.67 harris41 833: make -f Makefile.cvs clean
1.80 harris41 834: rm -f WARNINGS
1.136 harris41 835:
836: uninstall:
837: rm -f UNINSTALL_SHELL_COMMANDS
838: cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
839: perl lpml_parse.pl uninstall_shell_commands $(CATEGORY) $(DIST) \
840: "$(SOURCE)" "$(TARGET)" > UNINSTALL_SHELL_COMMANDS
841: @echo -n "**** NOTE **** A file \"UNINSTALL_SHELL_COMMANDS\" has been "
842: @echo "generated."
843: @echo "First, you should view the contents of this file."
844: @echo "If you are happy with the 'rm -Rf'! commands (or at least"
845: @echo "have another job lined up in case of catastrophe), then you "
846: @echo "can execute the following: sh ./UNINSTALL_SHELL_COMMANDS"
847:
848: backup:
849: @echo "Not yet implemented"
850:
851: restore:
852: @echo "Not yet implemented"
1.143 harris41 853:
854: # ===================================================== *** AUXILIARY TESTS ***
855: localauth:
856: @if (test -e $(LOCALAUTHPATH)/localauth.pm) && \
857: !(diff $(LOCALAUTHPATH)/localauth-std.pm \
858: $(LOCALAUTHPATH)/localauth.pm > /dev/null); then \
859: echo "**** WARNING **** $(LOCALAUTHPATH)/localauth.pm is different than the $(LOCALAUTHPATH)/localauth-std.pm; if you have not customized localauth.pm, then please manually overwrite localauth.pm (rm $(LOCALAUTHPATH)/localauth.pm; ln -s $(LOCALAUTHPATH)/localauth-std.pm $(LOCALAUTHPATH)/localauth.pm); if you have customized localauth.pm, then please double-check to see that your customized localauth.pm is compatible with any localauth-std.pm changes for this version of LON-CAPA"| tee -a WARNINGS; \
860: elif (test -e $(LOCALAUTHPATH)/localauth.pm) && \
861: (diff $(LOCALAUTHPATH)/localauth-std.pm \
862: $(LOCALAUTHPATH)/localauth.pm > /dev/null); then \
863: echo "**** NOTE **** LOCAL AUTH IS IDENTICAL WITH STANDARD TEMPLATE"| tee -a WARNINGS; \
864: elif !(test -e $(LOCALAUTHPATH)/localauth.pm) && \
865: (test -e $(LOCALAUTHPATH)/localauth-std.pm); then \
866: ln -s $(LOCALAUTHPATH)/localauth-std.pm $(LOCALAUTHPATH)/localauth.pm; \
867: fi
1.115 harris41 868:
1.129 harris41 869: # ================================================ *** A HELPFUL DEPENDENCY ***
1.115 harris41 870: alwaysrun:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>