From: Jordan Augé Date: Fri, 21 Feb 2014 11:41:58 +0000 (+0100) Subject: fixed makefile for template collection X-Git-Tag: myslice-1.1~327^2~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6bf27230dc7f6b6db5f952b247d82f07d962a1eb;p=unfold.git fixed makefile for template collection --- diff --git a/Makefile b/Makefile index ad27d395..ca83b860 100644 --- a/Makefile +++ b/Makefile @@ -71,14 +71,20 @@ debian.clean: plugins-templates: force @find plugins -type f -name '*.html' local-templates: force - @$(foreach tmpl,$(shell find . -name templates | grep -v '^\./templates$$'),ls -1 $(tmpl)/*;) + #@$(foreach tmpl,$(shell find . -name templates | grep -v '^\./templates$$'),ls -1 $(tmpl)/*;) + @$(foreach tmpl,$(shell find . -name templates | grep -v '^\./templates$$'),find $x -type f -name *.html;) + list-templates: plugins-templates local-templates #################### manage templates for the plugin area templates: force - mkdir -p templates - ln -sf $(foreach x,$(shell $(MAKE-SILENT) list-templates),../$(x)) ./templates + @mkdir -p templates + @echo "----" + @echo $(shell $(MAKE-SILENT) list-templates) + @echo "----" + @echo $(foreach x,$(shell $(MAKE-SILENT) list-templates),../$(x)) + #ln -sf $(foreach x,$(shell $(MAKE-SILENT) list-templates),../$(x)) ./templates clean-templates templates-clean: force rm -rf ./templates