Newer
Older
Digital_Repository / Repositories / Misc / Makefile
nstanger on 28 Nov 2005 463 bytes - Added Makefile.
SHELL=/bin/sh

EPRINTS:=/usr/local/eprints

SRC_FILES:=$(shell find . -name "*_local")
DST_FILES:=$(subst ./,$(EPRINTS)/,$(SRC_FILES))

.PHONY: deploy


deploy: $(DST_FILES)
	@announce "Correcting ownership and permissions..."
	sudo chown www:www $(DST_FILES)
	sudo chmod 755 $(DST_FILES)

$(EPRINTS)/%: ./%
	@announce "Copying $<..."
	sudo cp $< $@


debug:
	@echo "EPRINTS = [$(EPRINTS)]"
	@echo "SRC_FILES = [$(SRC_FILES)]"
	@echo "DST_FILES = [$(DST_FILES)]"