Diff for /nsdl/build/Makefile between versions 1.1 and 1.6

version 1.1, 2002/05/05 03:16:00 version 1.6, 2002/07/14 06:39:06
Line 6 Line 6
 DISTPROBE=`perl ./distprobe`  DISTPROBE=`perl ./distprobe`
 DIST=$(DISTPROBE)  DIST=$(DISTPROBE)
 CATEGORY="development"  CATEGORY="development"
 SOURCE=../..  SOURCE=..
 TARGET=""  TARGET=""
 NORESTORECONF="0"  NORESTORECONF="0"
 HOSTNAME=""  HOSTNAME=""
Line 29  help: Line 29  help:
  @echo "install: install from a compiled CVS source tree to a "   @echo "install: install from a compiled CVS source tree to a "
  @echo "         specified TARGET destination on the filesystem"   @echo "         specified TARGET destination on the filesystem"
  @echo "test: test different parts of the LON-CAPA system (TEST_*)"   @echo "test: test different parts of the LON-CAPA system (TEST_*)"
  @echo "TEST_lpml_scripts: make sure that the system can process "   @echo "TEST_lpml: make sure that the system can process "
  @echo "                   the Linux Packaging Markup Language"   @echo "                   the Linux Packaging Markup Language"
  @echo "TEST_system_dependencies: make sure that all needed system "   @echo "TEST_system_dependencies: make sure that all needed system "
  @echo "                          components are active and present "   @echo "                          components are active and present "
  @echo "                          on the server such as perl modules"   @echo "                          on the server such as perl modules"
  @echo "                          and the MySQL database"   @echo "                          and the MySQL database"
  @echo "TEST_web_layer: mimic various web-based interactions with "   @echo "TEST_weblayer: mimic various web-based interactions with "
  @echo "                respect to the login and various system "   @echo "                respect to the login and various system "
  @echo "                actions on the Gateway server"   @echo "                actions on the Gateway server"
  @echo "HTML: generate an HTML-formatted description of the "   @echo "HTML: generate an HTML-formatted description of the "
Line 54  help: Line 54  help:
  @echo "tardist: build a tarball that will upgrade the software on a "   @echo "tardist: build a tarball that will upgrade the software on a "
  @echo "         system"   @echo "         system"
   
 build:  build: Makefile.build
  @echo "Not yet implemented"   echo -n "" > WARNINGS
    make -f Makefile.build all
 install:   make warningnote
  @echo "Not yet implemented"  
   Makefile.build: Makefile alwaysrun
 test:   cat gatewayfiles.lpml | \
  @echo "Not yet implemented"   perl lpml_parse.pl build $(CATEGORY) $(DIST) "$(SOURCE)" \
    "$(TARGET)" > Makefile.build
 TEST_lpml_scripts:  
  @echo "Not yet implemented"  NET_install:
    make TIMESTAMP=`date +"%s"` METAMTARGET="TRANSPORT" \
    MTARGET="install" HOSTNAME="$(HOSTNAME)" lpmladm
    make warningnote
   
   install: Makefile.install
    @echo -n "" > WARNINGS
    make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" \
    directories
    make -f Makefile.install SOURCE="$(SOURCE)" TARGET="$(TARGET)" files
    make warningnote
   
   Makefile.install: Makefile alwaysrun
    cat gatewayfiles.lpml | \
    perl lpml_parse.pl install $(CATEGORY) $(DIST) "$(SOURCE)" \
    "$(TARGET)" > Makefile.install
   
   alwaysrun:
   
   test: TEST_lpml TEST_system_dependencies TEST_weblayer
    @echo "ALL TESTS SUCCESSFUL"
   
   TEST_lpml:
    @echo "TESTING LPML INSTALLATION MECHANISM"
    cd lpml_test; perl filecomparetest.pl
   
 TEST_system_dependencies:  TEST_system_dependencies:
  @echo "Not yet implemented"   @echo "TESTING WEB LAYER"
   
 TEST_web_layer:  TEST_weblayer:
  @echo "Not yet implemented"   @echo "TESTING SYSTEM DEPENDENCIES"
   
 HTML:  HTML:
  @echo "Not yet implemented"   install -d HTML
    cp $(SOURCE)/doc/gatewayfiles/*.gif HTML
    cat gatewayfiles.lpml | \
    perl lpml_parse.pl html development default "$(SOURCE)" '$(TARGET)' \
    > HTML/index.html
   
 doc:  doc:
  @echo "Not yet implemented"   @echo "Not yet implemented"
Line 87  statuspost: Line 115  statuspost:
 tardist:  tardist:
  @echo "Not yet implemented"   @echo "Not yet implemented"
   
   warningnote:
    @if (test -s WARNINGS); then \
    W=`grep -c '\*\*\*\* WARNING' WARNINGS`; \
    E=`grep -c '\*\*\*\* ERROR' WARNINGS`; \
    N=`grep -c '\*\*\*\* NOTE' WARNINGS`; \
    echo "--->  $$W WARNINGS ENCOUNTERED!       "; \
    echo "--->  $$E ERRORS ENCOUNTERED!         "; \
    echo "--->  $$N NOTES ENCOUNTERED!          "; \
    echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
    echo "!!!!  Please read the WARNINGS file !!!!"; \
    echo "!!!!   to make sure everything is   !!!!"; \
    echo "!!!!    correct and taken care of   !!!!"; \
    echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
    fi
   
   lpmladm:
    @if (test $(METAMTARGET) = "TRANSPORT"); then \
    echo "Transporting to $(HOSTNAME)"; \
    sudo mkdir lpmladm.$(TIMESTAMP); \
    sudo make DIST=$(DIST) CATEGORY=$(CATEGORY) \
    SOURCE="$(SOURCE)" \
    TARGET="lpmladm.$(TIMESTAMP)" \
    NORESTORECONF="$(NORESTORECONF)" "$(MTARGET)"; \
    cd lpmladm.$(TIMESTAMP); \
    sudo tar czf ../tarball$(TIMESTAMP).tar.gz .; \
    cd ..; scp tarball$(TIMESTAMP).tar.gz \
    lpmladm@$(HOSTNAME):~/tarball$(TIMESTAMP).tar.gz; \
    sudo rm -Rf lpmladm.$(TIMESTAMP); \
    sudo rm -f tarball$(TIMESTAMP).tar.gz; \
    ssh lpmladm@$(HOSTNAME) sudo mv tarball$(TIMESTAMP).tar.gz /; \
    ssh lpmladm@$(HOSTNAME) sudo tar -x -z -C / \
    -p --same-owner -f \
    /tarball$(TIMESTAMP).tar.gz; \
    ssh lpmladm@$(HOSTNAME) sudo rm -f \
    /tarball$(TIMESTAMP).tar.gz; \
    elif (test $(METAMTARGET) = "LAUNCH"); then \
    echo "Launching process on $(HOSTNAME)"; \
    LAUNCHSAVE=$(OUTSTREAM) $(SAVE); \
    make DIST=$(DIST) CATEGORY=$(CATEGORY) SOURCE="$(SOURCE)" \
    TARGET="$(TARGET)" NORESTORECONF="$(NORESTORECONF)" \
    LAUNCH="$(LAUNCHSAVE)" "$(MTARGET)"; \
    scp $(SAVE) lpmladm@$(HOSTNAME):$(SAVE); \
    ssh lpmladm@$(HOSTNAME) sudo -u $(LAUNCHUSER) perl $(SAVE); \
    else \
    echo "**** ERROR **** Incorrect METAMTARGET"; \
    fi
   # ssh lpmladm@$(HOSTNAME) sudo rm -f $(SAVE); \
   
   clean:
    @echo "Not yet implemented"
   

Removed from v.1.1  
changed lines
  Added in v.1.6


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