X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.am;h=60fd21efccb1cd608db67bc2424ef47408dbebc8;hb=e1563fefb20a0194a5ba46f87045763622f89bb3;hp=1b49456bc87cc87d79e9c105215528d313c1b7ca;hpb=f1acd62b54376a425a975f9af501c4c8c5689b39;p=openvswitch diff --git a/Makefile.am b/Makefile.am index 1b49456b..60fd21ef 100644 --- a/Makefile.am +++ b/Makefile.am @@ -51,11 +51,22 @@ ro_c = echo '/* -*- mode: c; buffer-read-only: t -*- */' SUFFIXES = .in .in: $(PERL) $(srcdir)/soexpand.pl -I$(srcdir) < $< | \ - sed -e 's,[@]LOGDIR[@],$(LOGDIR),g' \ + sed \ -e 's,[@]PKIDIR[@],$(PKIDIR),g' \ + -e 's,[@]LOGDIR[@],$(LOGDIR),g' \ + -e 's,[@]PERL[@],$(PERL),g' \ + -e 's,[@]PYTHON[@],$(PYTHON),g' \ -e 's,[@]RUNDIR[@],$(RUNDIR),g' \ + -e 's,[@]VERSION[@],$(VERSION),g' \ + -e 's,[@]localstatedir[@],$(localstatedir),g' \ -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \ - -e 's,[@]PERL[@],$(PERL),g' > $@ + -e 's,[@]sysconfdir[@],$(sysconfdir),g' \ + > $@.tmp + @if head -n 1 $@.tmp | grep -q '#!'; then \ + echo chmod +x $@.tmp; \ + chmod +x $@.tmp; \ + fi + mv $@.tmp $@ include lib/automake.mk include ofproto/automake.mk