X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=2e8fdecff40d6e1c3082c90190ebee4ba6a0ae76;hp=49935483eb3342e25ecab81b1e8be269d2e7f06b;hb=4b934dbdd70bc52441677a5615ffb982fb0f5ca1;hpb=4ea55661610af4ff25881eabe9c85cbf5ad62cd6 diff --git a/Makefile b/Makefile index 49935483..2e8fdecf 100644 --- a/Makefile +++ b/Makefile @@ -2,14 +2,13 @@ SHELL = /bin/bash MAKE-SILENT = $(MAKE) --no-print-directory -### first purpose, build and install from setup.py -all: build - -force: +all: static templates # clean up and recompute redo: redo-static redo-templates +force: + DESTDIR := / datadir := /usr/share bindir := /usr/bin @@ -26,10 +25,14 @@ install: --install-scripts=$(DESTDIR)/$(datadir)/unfold \ --install-data=$(DESTDIR)/$(datadir)/unfold -redo-static static: force - rm -rf static/ +static: force ./manage.py collectstatic --noinput +clean-static: + rm -rf static/ + +redo-static: clean-static static + #################### # general stuff DATE=$(shell date -u +"%a, %d %b %Y %T") @@ -131,7 +134,7 @@ debian.clean: plugins-templates: force @find plugins -type f -name '*.html' local-templates: force - @$(foreach tmpl,$(shell find . -name templates),ls -1 $(tmpl)/*;) + @$(foreach tmpl,$(shell find . -name templates | grep -v '^\./templates$$'),ls -1 $(tmpl)/*;) list-templates: plugins-templates local-templates