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
+redo: clean-oldies redo-static redo-templates
+
+clean-oldies:
+ rm -rf all-static all-templates django-static
+
+force:
DESTDIR := /
datadir := /usr/share
--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")
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