summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2007-11-06 14:34:13 +0100
committerJonas Smedegaard <dr@jones.dk>2007-11-06 14:34:13 +0100
commitb747c50e13c622436b99f3df939a9f50e183f3ce (patch)
tree03a7bd7de2c61953df7d08267e3f682838e388b6
parent0ddc1a31cb78d1bce3aa4884cb2c8a4ee7bcb16b (diff)
Avoid chdir in shell code (strip leading path afterwards instead) when resolving *_L10NFILES in Makefile.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d8c5e35..380955a 100644
--- a/Makefile
+++ b/Makefile
@@ -73,7 +73,7 @@ define POT_template
fileformat = $(if $(filter templates,$(3)),htmltemplate,text)
filetype = $(if $(filter templates,$(3)),tmpl,mdwn)
ALL_POTFILES += $(podir)/$(3).pot
-$(3)_L10NFILES = $$(shell cd "$(1)" && find * -type f -name '*.$$(filetype)')
+$(3)_L10NFILES = $$(patsubst $(1)/%,%,$$(shell find $(1) -type f -name '*.$$(filetype)'))
ALL_MASTERFILES += $$(patsubst %,$(1)/%,$$($(3)_L10NFILES))
$(podir)/$(3).pot: $(1)