X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=blobdiff_plain;f=Makefile;h=69725db55ad12a834e53e3de074c31d18643849a;hp=ca83b860125a4b643d399423c09b2ee4c4ffd316;hb=refs%2Fheads%2Ffibre;hpb=6bf27230dc7f6b6db5f952b247d82f07d962a1eb diff --git a/Makefile b/Makefile index ca83b860..69725db5 100644 --- a/Makefile +++ b/Makefile @@ -71,8 +71,9 @@ 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$$'),find $x -type f -name *.html;) + @$(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 @@ -80,11 +81,7 @@ list-templates: plugins-templates local-templates #################### manage templates for the plugin area templates: force @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 + ln -sf $(foreach x,$(shell $(MAKE-SILENT) list-templates),"../$(x)") ./templates clean-templates templates-clean: force rm -rf ./templates