DEST = /var/www/oldenburg.linux.de hostname=$(shell hostname -f) ifeq ($(hostname),kyllikki.infodrom.org) DEST = /var/lib/www/oldenburg.linux.de endif TEST = $(HOME)/public_html/new/lugo FILES= --exclude "CVS/" --include "*/" FILES += --include "*.png" --include "*.jpg" --include "*.html" --include "*.gif" FILES += --include "*.php" FILES += --include "News/*.txt" --include "Termine/*.txt" FILES += --include "favicon.ico" FILES += --include "lugo.css" FILES += --exclude "*" build: cd src && make all test: test -d $(TEST) || mkdir -p $(TEST) rsync -vlptr $(FILES) src/ $(TEST)/ # cd src && for f in *.html; do cp $$f $(TEST)/$$f; done install: test -d $(DEST) || mkdir -p $(DEST) ifneq ($(hostname),kyllikki.infodrom.org) # chgrp -R lugowww src && chmod g+w -R src endif 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'` -cd src && make clean # -cd Styles && make clean rebuild: build install test -x /home/joey/bin/update-lugo && /home/joey/bin/update-lugo # super lugo