summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Makefile.am10
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 7b685f2..1d41e96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,8 @@
a variable w_or_wo_openpkg (with_or_without_openpkg).
* Makefile.am: added a note why the command is needed for the build
of languages files
+ * Makefile.am: prevent configure to complain about not portable
+ filenames by replacing basename with `echo ... | sed ...`
2008-02-16 Richard Bos <richard@radoeka.nl>
diff --git a/Makefile.am b/Makefile.am
index f17274b..11c3bd8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -168,10 +168,12 @@ EXTRA_DIST += $(PHP_TEMPLATES)
MSGFMT=msgfmt
.po.mo: $<
-# Without $(mkinstalldirs) $(basename $@) 'make distcheck' fails
-# as the target directory (e.g. php/admin/locale/de/LC_MESSAGES)
-# does not yes exist at build time
- @$(mkinstalldirs) $(basename $@)
+# Without $(mkinstalldirs) `echo ... | sed ...` a 'make distcheck' would
+# fail as the target directory (e.g. php/admin/locale/de/LC_MESSAGES)
+# does not yes exist at build time. Use the `echo ... | sed ...` construction
+# as something smarter, like basename, results in configure to complain
+# about not portable filenames.
+ @$(mkinstalldirs) `echo "$@" | sed 's|messages\.mo||'`
$(MSGFMT) -o $@ $<
CLEANFILES += php/admin/locale/*/LC_MESSAGES/messages.mo