Browse Source

po: Generate perl bin path

Signed-off-by: Nils Gillmann <ng0@n0.is>
Nils Gillmann 6 years ago
parent
commit
c2f27dfe82
2 changed files with 8 additions and 2 deletions
  1. 7 1
      po/Makefile.in.in
  2. 1 1
      po/update.pl.in

+ 7 - 1
po/Makefile.in.in

@@ -76,10 +76,16 @@ POTFILES = \
 
 CATALOGS = @CATALOGS@
 
+do_perl_subst = $(SED) -e 's,[@]PERL[@],$(PERL),g'
+
 # Makevars gets inserted here. (Don't remove this line!)
 
 .SUFFIXES:
-.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
+.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update .pl.in .pl
+
+.pl.in.pl:
+	$(do_perl_subst) < $< > $@
+	chmod +x $@
 
 .po.mo:
 	@echo "$(MSGFMT) -c -o $@ $<"; \

+ 1 - 1
po/update.pl → po/update.pl.in

@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!@PERL@ -w
 
 #  GNOME po update utility.
 #  (C) 2000 The Free Software Foundation