diff options
author | Ben Pfaff <blp@nicira.com> | 2011-07-25 16:15:18 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-07-25 16:15:18 -0700 |
commit | cbaa4ffe9b72904a7dad8ba23fa13cf2783b26c9 (patch) | |
tree | 7984d8cc8dd16b0dc77c01ba52ed7bcaff9bfd56 /rhel | |
parent | 3e42dfdc39de77a408afc4f812e01d9be5ceda66 (diff) |
rhel: Fix use of $< in ordinary Make rules.
POSIX only allows $< in inference rules, so avoid it for these target
rules.
Also, add a header to the generated spec files to remind developers that
they are generated.
Diffstat (limited to 'rhel')
-rw-r--r-- | rhel/automake.mk | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/rhel/automake.mk b/rhel/automake.mk index d4d59613..34abe5b9 100644 --- a/rhel/automake.mk +++ b/rhel/automake.mk @@ -20,11 +20,13 @@ EXTRA_DIST += \ $(srcdir)/rhel/openvswitch-kmod-rhel5.spec: rhel/openvswitch-kmod-rhel5.spec.in $(top_builddir)/config.status - sed -e 's,[@]VERSION[@],$(VERSION),g' < $< > $@ + ($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \ + < $(srcdir)/rhel/openvswitch-kmod-rhel5.spec.in > $@ $(srcdir)/rhel/openvswitch-kmod-rhel6.spec: rhel/openvswitch-kmod-rhel6.spec.in $(top_builddir)/config.status - - sed -e 's,[@]VERSION[@],$(VERSION),g' < $< > $@ + ($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \ + < $(srcdir)/rhel/openvswitch-kmod-rhel6.spec.in > $@ $(srcdir)/rhel/openvswitch.spec: rhel/openvswitch.spec.in $(top_builddir)/config.status - sed -e 's,[@]VERSION[@],$(VERSION),g' < $< > $@ + ($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \ + < $(srcdir)/rhel/openvswitch.spec.in > $@ |