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