IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2012, 9:51:29 AM (14 years ago)
Author:
eugene
Message:

adding INSTALL options, cleanup makefile

Location:
branches/eam_branches/ipp-20120905/dvodist
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120905/dvodist/INSTALL

    r34543 r34548  
    22after setting up psconfig:
    33
    4 kiawe / alala example:
    5  psconfigure --dbhost alala --dbuser ipp --dbpass ipp --htdocs /var/www/kiawe
    6 
    7 # Regular installation on ippMonitor.ifa.hawaii.edu
    8 # Note: we use a 'science databases (replication) slave' and the ippMonitor read-only account to connect to that database
    9 psconfigure --dbhost scidbs1 --dbuser ippMonitor --dbpass ippMonitor --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config
    10 psconfigure --htdocs /data/ippc17.0/www/dvodist/
    11 make php
     4ippc17 / dvodist example
     5 psconfigure --htdocs /data/ippc17.0/www/dvodist
     6 make php
  • branches/eam_branches/ipp-20120905/dvodist/Makefile.in

    r34543 r34548  
    44
    55# copy 'scripts' to target, copy 'www-util' to target, copy '
     6
     7GENERATE = src/generate
    68
    79SRC-ROOT = www-root
     
    3537$(TGT-ROOT)/ipp.css
    3638
     39TEST = \
     40$(TGT-ROOT)/help.php \
     41$(TGT-UTIL)/ipp.page.php
     42
     43test: $(TEST)
     44
    3745php: $(ROOT) $(UTIL) $(PROG)
    3846
    39 # dependancy rules for binary code #########################
    40 # .PRECIOUS: %.$(ARCH).o
    41 # .PRECIOUS: $(BIN)/%.$(ARCH)
     47## # non-generated php code is copied directly
     48## $(TGT-ROOT)/%: $(SRC-ROOT)/%
     49##      @if [ ! -d $(TGT-ROOT) ]; then mkdir -p $(TGT-ROOT) || exit; fi
     50##      cp $(SRC-ROOT)/$* $(TGT-ROOT)/$* || exit
     51##      chmod +x $(TGT-ROOT)/$* || exit
     52##
     53## $(TGT-PROG)/%: $(SRC-PROG)/%
     54##      @if [ ! -d $(TGT-PROG) ]; then mkdir -p $(TGT-PROG) || exit; fi
     55##      cp $(SRC-PROG)/$* $(TGT-PROG)/$* || exit
     56##      chmod +x $(TGT-PROG)/$* || exit
     57##
     58## $(TGT-UTIL)/%: $(SRC-UTIL)/%
     59##      @if [ ! -d $(TGT-UTIL) ]; then mkdir -p $(TGT-UTIL) || exit; fi
     60##      cp $(SRC-UTIL)/$* $(TGT-UTIL)/$* || exit
     61##      chmod +x $(TGT-UTIL)/$* || exit
    4262
    43 # $(DESTLINK): $(DESTWWW)/Login.php
    44 #       rm -f $@
    45 #       ln -s $(DESTWWW)/Login.php $@
    46 #
    47 # $(DESTWWW)/version.php:
    48 #       svnversion > $@
     63# mkd files are used to generate php files
     64$(TGT-ROOT)/%.php: $(SRC-ROOT)/%.mkd
     65        @if [ ! -d $(TGT-ROOT) ]; then mkdir -p $(TGT-ROOT) || exit; fi
     66        rm -f $(TGT-ROOT)/$*.php || exit
     67        $(GENERATE) --htdocs @HTDOCS@ $(SRC-ROOT)/$*.mkd $(TGT-ROOT)/$*.php || exit
    4968
    50 # non-generated php code is copied directly
    51 $(TGT-ROOT)/%: $(SRC-ROOT)/%
    52         @if [ ! -d $(TGT-ROOT) ]; then mkdir -p $(TGT-ROOT) || exit; fi
    53         cp $(SRC-ROOT)/$* $(TGT-ROOT)/$* || exit
    54         chmod +x $(TGT-ROOT)/$* || exit
    55 
    56 $(TGT-PROG)/%: $(SRC-PROG)/%
    57         @if [ ! -d $(TGT-PROG) ]; then mkdir -p $(TGT-PROG) || exit; fi
    58         cp $(SRC-PROG)/$* $(TGT-PROG)/$* || exit
    59         chmod +x $(TGT-PROG)/$* || exit
    60 
    61 $(TGT-UTIL)/%: $(SRC-UTIL)/%
     69# mkd files are used to generate php files
     70$(TGT-UTIL)/%.php: $(SRC-UTIL)/%.mkd
    6271        @if [ ! -d $(TGT-UTIL) ]; then mkdir -p $(TGT-UTIL) || exit; fi
    63         cp $(SRC-UTIL)/$* $(TGT-UTIL)/$* || exit
    64         chmod +x $(TGT-UTIL)/$* || exit
    65 
    66 # $(TGT-ROOT)/%.css: $(TGT-SRC)/%.css
    67 #       @if [ ! -d $(TGT-ROOT) ]; then mkdir -p $(TGT-ROOT) || exit; fi
    68 #       rm -f $(TGT-ROOT)/$*.css || exit
    69 #       cp $(TGT-SRC)/$*.css $(TGT-ROOT)/$*.css || exit
    70 #
    71 # $(TGT-ROOT)/%.php: $(TGT-SRC)/%.php
    72 #       @if [ ! -d $(TGT-ROOT) ]; then mkdir -p $(TGT-ROOT) || exit; fi
    73 #       rm -f $(TGT-ROOT)/$*.php || exit
    74 #       cp $(TGT-SRC)/$*.php $(TGT-ROOT)/$*.php || exit
     72        rm -f $(TGT-UTIL)/$*.php || exit
     73        $(GENERATE) --htdocs @HTDOCS@ $(SRC-UTIL)/$*.mkd $(TGT-UTIL)/$*.php || exit
    7574
    7675# utilities #################################################
    77 
    7876clean: 
    7977        rm -f `find . -name "*.o"`
     
    8179        rm -f `find . -name "#*"`
    8280
     81.PRECIOUS: $(SRC)/%.mkd
    8382.PRECIOUS: $(SRC)/%.php
    8483.PRECIOUS: $(SRC)/%.css
Note: See TracChangeset for help on using the changeset viewer.