X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=34a9b0f9667762c2659afa0f1683f890b28fbbd4;hb=cd79d4fdae610d22cdd7886b88c3c4d888fd3cd0;hp=ad27d39514fd754ea4b4ed4dd43172ac2ea1ef5d;hpb=08bce207f8b92b8c93677c7b3bf749bd23fcdbc2;p=unfold.git diff --git a/Makefile b/Makefile index ad27d395..34a9b0f9 100644 --- a/Makefile +++ b/Makefile @@ -71,13 +71,16 @@ debian.clean: plugins-templates: force @find plugins -type f -name '*.html' local-templates: force + @$(foreach tmpl,$(shell find . -name templates | grep -v '^\./templates$$'),find $(tmpl) -maxdepth 2 -type f -name *.html;) +local-templates2: force @$(foreach tmpl,$(shell find . -name templates | grep -v '^\./templates$$'),ls -1 $(tmpl)/*;) + list-templates: plugins-templates local-templates #################### manage templates for the plugin area templates: force - mkdir -p templates + @mkdir -p templates ln -sf $(foreach x,$(shell $(MAKE-SILENT) list-templates),../$(x)) ./templates clean-templates templates-clean: force