X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/669a5f5ecc0d50daf96d8dc2af219c94c8625fb4..87e1c47c2226eb943f6e6f9c6d0530323e8ea12a:/po/Makefile

diff --git a/po/Makefile b/po/Makefile
index 5ec4a157c..bd218c6e1 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -22,7 +22,7 @@ install: all
 	
 	# Underlay translation via po files that go in special per-language
 	# underlays.
-	for file in `cd underlays && find . -type f -name \*.po`; do \
+	for file in `find underlays -type f -name \*.po | sed -e 's|^underlays/||'`; do \
 		lang=`echo $$file | sed -e 's/.po$$//' -e 's/.*\\.//'`; \
 		dir=`dirname "$(DESTDIR)$(PREFIX)/share/ikiwiki/po/$$lang/$$file"`; \
 		install -d $$dir; \
@@ -81,10 +81,10 @@ underlays_copy_stamp:
 	touch $@
 
 underlays: ../ikiwiki.out underlays_copy_stamp
-	../ikiwiki.out -libdir .. -setup underlay.setup -refresh
+	../ikiwiki.out --libdir .. --setup underlay.setup --refresh
 
 ../ikiwiki.out: ../Makefile
-	make -C .. ikiwiki.out
+	$(MAKE) -C .. ikiwiki.out
 
 ../Makefile: ../Makefile.PL
 	cd .. && ./Makefile.PL