Admin/website/build/project.mak
author haftmann
Tue, 28 Mar 2006 10:13:51 +0200
changeset 19331 f5e84acd7d3f
parent 18214 857444b28267
child 19361 aa226c08d14a
permissions -rw-r--r--
some internal cleanup

# isaweb makefile - project-specific dependencies
# $Id$

include conf/distinfo.mak
conf/distinfo.mak:
	@echo 'There is no $@ file; it should have been allocated by makedist.'; \
	@echo 'If you have no makedist at hand, check out default $@ from CVS'; \
	@false; \

STATICDIRS=css img media misc
STATICFILES=include/documentationdist.include.html
OUTPUTDIST=$(OUTPUTROOT)/dist-$(DISTNAME)

project: $(OUTPUTDIST) site
.PHONY: project

cleanproject:
	rm -rf $(OUTPUTDIST)
.PHONY: cleanproject

ifeq ($(RSYNC),)

$(OUTPUTDIST): $(ISABELLE_DIST)
	mkdir -p $@
	$(COPY) -vRud $</[^w]* $@
	-chgrp -hR $(TARGET_GROUP) $@
	-chmod -R u+w,g-w,o-w $@
	-[ ! -e $@/Isabelle ] && ln -s $(ISABELLE_DIST)/$(DISTNAME) $@/Isabelle
	-chgrp -h $(TARGET_GROUP) $@/Isabelle
	-chmod u+w,g-w,o-w $@/Isabelle
	ln -s $(OUTPUTDIST) $(OUTPUTROOT)/dist

else

$(OUTPUTDIST): $(ISABELLE_DIST) SYNC_ALWAYS
	mkdir -p $@
	$(RSYNC) -v --exclude='/website/' -rlt --delete --delete-after $</ $@
	-chgrp -hR $(TARGET_GROUP) $@
	-chmod -R u+w,g-w,o-w $@
	-[ ! -e $@/Isabelle ] && ln -s $(ISABELLE_DIST)/$(DISTNAME) $@/Isabelle
	-chgrp -h $(TARGET_GROUP) $@/Isabelle
	-chmod u+w,g-w,o-w $@/Isabelle
	ln -s $(OUTPUTDIST) $(OUTPUTROOT)/dist

SYNC_ALWAYS:

endif

include/documentationdist.include.html: $(ISABELLE_DOC_CONTENT_FILE)
	perl build/mkcontents.pl -p '//dist/Isabelle/doc/' $< $@

perms:
	build/set_perm.bash $(FIND) $(LOCAL_UMASK_FILE) $(LOCAL_UMASK_DIR) $(LOCAL_GROUP)
.PHONY: perms