hostname=$(shell hostname) ifeq ($(hostname),luonnotar) DEST = /var/www/infocon.infodrom.org TEST = $(HOME)/luonnotar_html/new/infocon else DEST = $(HOME)/public_html/new/infocon TEST = $(HOME)/public_html/new/infocon endif FILES = --exclude "CVS/" --exclude "*imgdot-1x1-transp-ffffff.gif" --exclude "*imgdot-1x1-transp.gif" --include "*/" FILES+= --include "*.html" --include "*.shtml" --include "*.php3" FILES+= --include "*.jpg" --include "*.gif" --include "*.png" FILES+= --exclude "*" build: make -C src all test: test -d $(TEST) || mkdir -p $(TEST) rsync -lptr $(FILES) src/ $(TEST)/ # cd src && for f in *.html; do cp $$f $(TEST)/$$f; done fix: install: fix test -d $(DEST) || mkdir -p $(DEST) rsync -lptr $(FILES) src/ $(DEST)/ # cd src && for f in *.html; do cp $$f $(DEST)/$$f; done clean: -rm -f `find -name '*~'` `find -name '.?*.swp'` -make -C src clean -make -C Styles clean depend: make -C src rdepend