IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 30, 2013, 5:03:16 PM (13 years ago)
Author:
eugene
Message:

updating the dvo distribution system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dvodist/Makefile.in

    r35415 r36076  
    11default: help
    22help:
    3         @echo "USAGE: make (website)"
    4         @echo "  (website) = dvodist or ippdata"
     3        @echo "USAGE: make (target)"
     4        @echo "  targets: "
     5        @echo "  dvodist : the internal dvo distribution website (info pages only)"
     6        @echo "  dvodist-all : install pages for dvo data"
     7        @echo "  ippdata : the public ipp data distribution website"
     8        @echo ""
     9        @echo "  clean-dvodist : remove generated php files"
     10        @echo "  clean-ippdata : remove generated php files"
    511
    612GENERATE = src/generate --htdocs @HTDOCS@ --rootdir @ROOTDIR@ --rootwww @ROOTWWW@
     
    2026TGT-IPPDATA = @HTDOCS@/ippdata
    2127
    22 # common code used by all installation?
     28# generated common code used by all installations
    2329UTIL = \
    24 $(TGT-UTIL)/blank.html \
    2530$(TGT-UTIL)/ipp.page.php \
    26 $(TGT-UTIL)/ipp.menu.dat \
    2731$(TGT-UTIL)/ipp.php \
    2832$(TGT-UTIL)/markdown.php \
    2933$(TGT-UTIL)/phptest.php
    3034
    31 DVODIST = \
    32 $(TGT-UTIL)/dvodist.menu.dat \
     35# pages which are generated (and thus depend on the config)
     36DVODIST-MKD = \
    3337$(TGT-UTIL)/dvodist.page.php \
    34 $(TGT-DVODIST)/PScolorlogo2.jpg \
    3538$(TGT-DVODIST)/index.php \
    3639$(TGT-DVODIST)/test.php \
    3740$(TGT-DVODIST)/docs.php \
    3841$(TGT-DVODIST)/help.php \
    39 $(TGT-DVODIST)/ipp.css \
    4042$(TGT-DVODIST)/catdir.syn.test/index.php \
    4143$(TGT-DVODIST)/catdir.syn.test/n3000/index.php \
    4244$(TGT-DVODIST)/catdir.syn.test/n3730/index.php
    4345
    44 IPPDATA = \
    45 $(TGT-UTIL)/ippdata.menu.dat \
     46# pages which are copied directly
     47DVODIST-RAW = \
     48$(TGT-DVODIST)/blank.html \
     49$(TGT-DVODIST)/PScolorlogo2.jpg \
     50$(TGT-DVODIST)/ipp.css \
     51$(TGT-UTIL)/dvodist.menu.dat
     52
     53DVODIST = $(DVODIST-MKD) $(DVODIST-RAW)
     54
     55IPPDATA-MKD = \
    4656$(TGT-UTIL)/ippdata.page.php \
    47 $(TGT-IPPDATA)/PScolorlogo2.jpg \
    4857$(TGT-IPPDATA)/index.php \
    4958$(TGT-IPPDATA)/docs/index.php \
    5059$(TGT-IPPDATA)/docs/photladder.php \
     60$(TGT-IPPDATA)/photladder.20130107.subset/index.php \
     61$(TGT-IPPDATA)/photladder.20130107.subset/relphot-fits/index.php \
     62$(TGT-IPPDATA)/photladder.20130107.subset/relphot-csv/index.php \
     63$(TGT-IPPDATA)/photladder.20130107.subset/ubercal-fits/index.php \
     64$(TGT-IPPDATA)/photladder.20130107.subset/ubercal-csv/index.php \
     65$(TGT-IPPDATA)/catdir.syn.test/index.php \
     66$(TGT-IPPDATA)/catdir.syn.test/n3000/index.php \
     67$(TGT-IPPDATA)/catdir.syn.test/n3730/index.php \
     68$(TGT-IPPDATA)/help.php
     69
     70IPPDATA-RAW = \
     71$(TGT-UTIL)/ippdata.menu.dat \
     72$(TGT-IPPDATA)/blank.html \
     73$(TGT-IPPDATA)/ipp.css \
     74$(TGT-IPPDATA)/PScolorlogo2.jpg \
    5175$(TGT-IPPDATA)/docs/photladder-1206.20130301.pdf \
    5276$(TGT-IPPDATA)/docs/2mass.compare/dH.allsky.20120528.v3.png \
     
    5781$(TGT-IPPDATA)/docs/2mass.compare/sigma.g.ubercal.20120528.v0.png \
    5882$(TGT-IPPDATA)/docs/2mass.compare/sigma.i.ubercal.20120528.v0.png \
    59 $(TGT-IPPDATA)/photladder.20130107.subset/index.php \
    60 $(TGT-IPPDATA)/photladder.20130107.subset/relphot-fits/index.php \
    61 $(TGT-IPPDATA)/photladder.20130107.subset/relphot-csv/index.php \
    62 $(TGT-IPPDATA)/photladder.20130107.subset/ubercal-fits/index.php \
    63 $(TGT-IPPDATA)/photladder.20130107.subset/ubercal-csv/index.php \
    64 $(TGT-IPPDATA)/catdir.syn.test/index.php \
    65 $(TGT-IPPDATA)/catdir.syn.test/n3000/index.php \
    66 $(TGT-IPPDATA)/catdir.syn.test/n3730/index.php \
    67 $(TGT-IPPDATA)/help.php \
    6883$(TGT-IPPDATA)/ipp.css
     84
     85IPPDATA = $(IPPDATA-RAW) $(IPPDATA-MKD)
    6986
    7087include $(SRC-DVODIST)/3pi.20120509/Makefile
     
    7289include $(SRC-DVODIST)/3pi.20120606/Makefile
    7390include $(SRC-DVODIST)/3pi.20130227/Makefile
     91include $(SRC-DVODIST)/LAP.3pi.PV1/Makefile
    7492include $(SRC-DVODIST)/3pi.20120525.tables/Makefile
    7593include $(SRC-DVODIST)/3pi.20130227.tables/Makefile
     
    8199$(DIST-3pi-20120606) \
    82100$(DIST-3pi-20130227) \
     101$(DIST-LAP-3pi-PV1) \
    83102$(DIST-3pi-20120525-tables) \
    84103$(DIST-3pi-20130227-tables) \
     
    96115        $(GENERATE) $(SRC-UTIL)/$*.mkd $(TGT-UTIL)/$*.php || exit
    97116
     117# non-generated common utilities (not dest for htdocs)
    98118$(TGT-UTIL)/%: $(SRC-UTIL)/%
    99119        @if [ ! -d $(TGT-UTIL) ]; then mkdir -p $(TGT-UTIL) || exit; fi
    100120        cp $(SRC-UTIL)/$* $(TGT-UTIL)/$* || exit
    101121        chmod +x $(TGT-UTIL)/$* || exit
     122
     123#### dvodist
     124
     125# common non-generated code from a common location
     126$(TGT-DVODIST)/%: $(SRC-UTIL)/%
     127        @if [ ! -d $(TGT-DVODIST) ]; then mkdir -p $(TGT-DVODIST) || exit; fi
     128        cp $(SRC-UTIL)/$* $(TGT-DVODIST)/$* || exit
     129        chmod +x $(TGT-DVODIST)/$* || exit
    102130
    103131# mkd files are used to generate php files
     
    112140        cp $(SRC-DVODIST)/$* $(TGT-DVODIST)/$* || exit
    113141        chmod +x $(TGT-DVODIST)/$* || exit
     142
     143#### ippdata
     144
     145# common non-generated code from a common location
     146$(TGT-IPPDATA)/%: $(SRC-UTIL)/%
     147        @if [ ! -d $(TGT-IPPDATA) ]; then mkdir -p $(TGT-IPPDATA) || exit; fi
     148        cp $(SRC-UTIL)/$* $(TGT-IPPDATA)/$* || exit
     149        chmod +x $(TGT-IPPDATA)/$* || exit
    114150
    115151# mkd files are used to generate php files
     
    126162
    127163# utilities #################################################
     164clean-dvodist: 
     165        rm -f $(DVODIST-MKD) $(UTIL-MKD) $(DVODIST_DIRS)
     166
     167clean-ippdata: 
     168        rm -f $(IPPDATA-MKD) $(UTIL-MKD)
     169
    128170clean: 
    129171        rm -f `find . -name "*.o"`
Note: See TracChangeset for help on using the changeset viewer.