SHELL=/bin/sh EPRINTSSTATS:=/usr/local/eprints/ePrintsStats BINDIR:=$(EPRINTSSTATS)/scripts .PHONY: deploy stats deploy: @announce "Copying files..." @sudo rsync --verbose --cvs-exclude --exclude=Makefile \ --recursive --times . $(EPRINTSSTATS) @announce "Correcting ownership..." sudo chown -R www:www $(EPRINTSSTATS) stats: @announce "Generating statistics..." @sudo -u www php $(BINDIR)/eprints-usage.php @sudo -u www perl $(BINDIR)/add_country.pl debug: @echo "EPRINTSSTATS = [$(EPRINTSSTATS)]" @echo "BINDIR = [$(BINDIR)]"