Diff for /loncom/build/Makefile between versions 1.137 and 1.148

version 1.137, 2002/12/11 22:20:11 version 1.148, 2003/06/13 22:13:09
Line 1 Line 1
 # The LearningOnline Network with CAPA  # The LearningOnline Network with CAPA
   
 # Scott Harrison, your friendly neighborhood volunteer  
 # $Id$  # $Id$
   
 # TYPICAL USAGE of this Makefile is primarily for two targets:  # TYPICAL USAGE of this Makefile is primarily for two targets:
Line 23  SAVE=program.pl.$(TIMESTAMP) Line 22  SAVE=program.pl.$(TIMESTAMP)
 LAUNCHSAVE=$(OUTSTREAM) $(SAVE)  LAUNCHSAVE=$(OUTSTREAM) $(SAVE)
 METAMTARGET=""  METAMTARGET=""
 MTARGET=""  MTARGET=""
 VERSION=0.5  VERSION=0.99.2
   # The current working definition for "RELEASE" is: changes not in the software,
   # but in the operating system dependent packaging of the software.  Thus, the
   # generic tarball releases do not need to have a release number specified.
   RELEASE=1 # As a general rule for now, this is always being set to "1".
 DIRTARGET=loncapa-$(VERSION)  DIRTARGET=loncapa-$(VERSION)
   LOCALAUTHPATH=/home/httpd/lib/perl
   
 # =============================================== Help targets for the Makefile  # =============================================== Help targets for the Makefile
 # If 'make' is run without any arguments, the 'help' target is called since  # If 'make' is run without any arguments, the 'help' target is called since
Line 195  help_TARGETS: Line 199  help_TARGETS:
  @echo "        instructor data (NOT YET IMPLEMENTED)"   @echo "        instructor data (NOT YET IMPLEMENTED)"
  @echo "restore: reseeds a LON-CAPA server with tarball backups "   @echo "restore: reseeds a LON-CAPA server with tarball backups "
  @echo "         generated by \"make backup\" (NOT YET IMPLEMENTED)"   @echo "         generated by \"make backup\" (NOT YET IMPLEMENTED)"
    @echo "*** AUXILIARY TESTS ***"
    @echo "localauth: tests to see if localauth exists or not and run"
    @echo "           appropriate tests"
  @echo "*** A HELPFUL DEPENDENCY ***"   @echo "*** A HELPFUL DEPENDENCY ***"
  @echo "alwaysrun: blank target that is a dependency for targets"   @echo "alwaysrun: blank target that is a dependency for targets"
  @echo "           that should \"always run\""   @echo "           that should \"always run\""
Line 326  vanillatar: Line 333  vanillatar:
  chmod a+rx $(SOURCE)/TEST   chmod a+rx $(SOURCE)/TEST
  chmod a+rx $(SOURCE)/CHECKRPMS   chmod a+rx $(SOURCE)/CHECKRPMS
  # -------------------------------- Copy README to the vanilla top-level   # -------------------------------- Copy README to the vanilla top-level
  cp -v $(SOURCE)/doc/shortest_path_redhat7.2.txt $(SOURCE)/README   #cp -v $(SOURCE)/doc/shortest_path_redhat7.2.txt $(SOURCE)/README
   
 tardist:  tardist:
  make MANIFEST_all   make MANIFEST_all
Line 470  MANIFEST_all: Line 477  MANIFEST_all:
  echo 'loncom/rawhide_hosts.tab' >> $(SOURCE)/MANIFEST   echo 'loncom/rawhide_hosts.tab' >> $(SOURCE)/MANIFEST
  echo 'loncom/production_hosts.tab' >> $(SOURCE)/MANIFEST   echo 'loncom/production_hosts.tab' >> $(SOURCE)/MANIFEST
  echo 'loncom/development_hosts.tab' >> $(SOURCE)/MANIFEST   echo 'loncom/development_hosts.tab' >> $(SOURCE)/MANIFEST
    echo 'loncom/production_domain.tab' >> $(SOURCE)/MANIFEST
    echo 'loncom/development_domain.tab' >> $(SOURCE)/MANIFEST
  # ------------------ Files needed for dynamically generated directories   # ------------------ Files needed for dynamically generated directories
  echo 'doc/man' >> $(SOURCE)/MANIFEST   echo 'doc/man' >> $(SOURCE)/MANIFEST
  echo 'doc/lib' >> $(SOURCE)/MANIFEST   echo 'doc/lib' >> $(SOURCE)/MANIFEST
Line 500  MANIFEST_lpml: Line 509  MANIFEST_lpml:
  cat $(SOURCE)/doc/loncapafiles/testfiles.lpml | \   cat $(SOURCE)/doc/loncapafiles/testfiles.lpml | \
  perl lpml_parse.pl MANIFEST development default \   perl lpml_parse.pl MANIFEST development default \
  '$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' >> $(SOURCE)/MANIFEST   '$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' >> $(SOURCE)/MANIFEST
    cat $(SOURCE)/doc/loncapafiles/installfiles.lpml | \
    perl lpml_parse.pl MANIFEST development default \
    '$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' >> $(SOURCE)/MANIFEST
  cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \   cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
  perl lpml_parse.pl MANIFEST development default \   perl lpml_parse.pl MANIFEST development default \
  '$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' >> $(SOURCE)/MANIFEST   '$(SOURCE)' '$(TARGET)' | grep '[[:alnum:]]' >> $(SOURCE)/MANIFEST
Line 568  RPM: BinaryRoot base_rpm_file_list Line 580  RPM: BinaryRoot base_rpm_file_list
  cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \   cat $(SOURCE)/doc/loncapafiles/loncapafiles.lpml | \
  perl lpml_parse.pl make_rpm $(CATEGORY) $(DIST) $(SOURCE) $(TARGET) \   perl lpml_parse.pl make_rpm $(CATEGORY) $(DIST) $(SOURCE) $(TARGET) \
  > base_customizerpm.xml   > base_customizerpm.xml
  cat base_rpm_file_list.txt | perl make_rpm.pl base 3.2 '' '' \   cat base_rpm_file_list.txt | perl make_rpm.pl base $(VERSION) \
  BinaryRoot base_customizerpm.xml   $(RELEASE) '' '' BinaryRoot base_customizerpm.xml
   
 DPKG:  DPKG:
  make TARGET='lon-capa-$(VERSION)' NORESTORECONF='1' install   make TARGET='lon-capa-$(VERSION)' NORESTORECONF='1' install
Line 782  backup: Line 794  backup:
 restore:  restore:
  @echo "Not yet implemented"   @echo "Not yet implemented"
   
   # ===================================================== *** AUXILIARY TESTS ***
   localauth:
    @if (test -e $(LOCALAUTHPATH)/localauth.pm) && \
                !(diff $(LOCALAUTHPATH)/localauth-std.pm \
                 $(LOCALAUTHPATH)/localauth.pm > /dev/null); then \
    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; \
    elif (test -e $(LOCALAUTHPATH)/localauth.pm) && \
                 (diff $(LOCALAUTHPATH)/localauth-std.pm \
                 $(LOCALAUTHPATH)/localauth.pm > /dev/null); then \
    echo "**** NOTE **** LOCAL AUTH IS IDENTICAL WITH STANDARD TEMPLATE"| tee -a WARNINGS; \
    elif !(test -e $(LOCALAUTHPATH)/localauth.pm) && \
         (test -e $(LOCALAUTHPATH)/localauth-std.pm); then \
    ln -s $(LOCALAUTHPATH)/localauth-std.pm $(LOCALAUTHPATH)/localauth.pm; \
    fi
   
 # ================================================ *** A HELPFUL DEPENDENCY ***  # ================================================ *** A HELPFUL DEPENDENCY ***
 alwaysrun:  alwaysrun:

Removed from v.1.137  
changed lines
  Added in v.1.148


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