Makefile
branchimmsview
changeset 30 a7f7026f9416
parent 23 e0e59c2c5b46
child 31 13f56bb29b96
equal deleted inserted replaced
29:09fc77396ac9 30:a7f7026f9416
     1 MAKEFILE_VERSION="$Id$"
       
     2 REMOTE_DIR=o:public_html/oss/immsview
     1 REMOTE_DIR=o:public_html/oss/immsview
     3 VERSION=$(shell python -c 'from imp import load_source; \
     2 VERSION=$(shell python -c 'from imp import load_source; \
     4 		print load_source(".","immsview")._version_' \
     3 		print load_source(".","immsview")._version_' \
     5 		| sed -e 's;\$$Id$$;\1;')
     4 		| sed -e 's;\$$Id$$;\1;')
     6 
     5 
     7 index.html: index.html.in immsview
     6 index.html: index.html.in immsview
     8 	perl -p -e 's;\@IMMSVIEW_VERSION\@;$(VERSION);g' $< > $@
     7 	perl -p -e 's;\@IMMSVIEW_VERSION\@;$(VERSION);g' $< > $@
     9 
     8 
    10 update: immsview index.html
     9 update: immsview index.html immsview-screenshot-1.png immsview-ss-small-1.png
    11 	rsync -zp $^ $(REMOTE_DIR)/
    10 	rsync -zp $^ $(REMOTE_DIR)/
    12 
    11 
    13 .PHONY: index.html
    12 .PHONY: index.html