chiark / gitweb /
ipif: fix for make breakage
[userv-utils.git] / ipif / Makefile
index 879c0136ab96f624ef528aae57c1c13a4724d13b..77910581153ee1f5d261b99c081044a13f2051e5 100644 (file)
@@ -1,6 +1,7 @@
 # Makefile for ipif/udptunnel stuff
 
-# Copyright (C) 1999-2000 Ian Jackson
+# Copyright (C) 1999-2000,2003 Ian Jackson
+# This file is part of ipif, part of userv-utils
 #
 # This is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -52,13 +53,12 @@ install-examples:
                cp *.example $(etcvpn)/.
 
 udptunnel-reconf:      udptunnel-reconf.pl Makefile
-               perl -pe '      \
-       print "\
-\$$shareuserv= \"$(shareuserv)\";\n\
-\$$etcvpn= \"$(etcvpn)\";\n\
-\$$varlibvpn= \"$(varlibvpn)\";\n" if m#^\# \@\@\@\-#; \
-       $$_="" if m/^\# \@\@\@\-/ .. m/^\# \-\@\@\@/;   \
-               '       \
+               set -x; perl -p \
+-e '           print ' \
+-e '   "\$$shareuserv= \"$(shareuserv)\";\n".' \
+-e '   "\$$etcvpn= \"$(etcvpn)\";\n".' \
+-e '   "\$$varlibvpn= \"$(varlibvpn)\";\n" if m#^\# \@\@\@\-#; ' \
+-e '           $$_="" if m/^\# \@\@\@\-/ .. m/^\# \-\@\@\@/;   ' \
                        <$< >$@.new
                chmod +x $@.new
                mv -f $@.new $@