diff options
author | Muh Muhten <muh.muhten@gmail.com> | 2019-01-30 00:05:49 -0500 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2019-01-30 09:48:04 -0600 |
commit | 012af2186bb202edea4781a8128001bb078bbb27 (patch) | |
tree | 484deb65681a72f972f1f03b68fcb9eebb7132fe | |
parent | 12a628abdc8d18afc8608f65cca47f5af66329a3 (diff) |
Fix build on BSD make
Replace uses of the nonstandard $^ variable by explicitly specifying the
source filenames. This is the only obvious thing preventing the build
from running correctly on non-GNU make.
-rw-r--r-- | Makefile.am | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index d79637df..4b47d74a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -106,7 +106,7 @@ src/main.c: src/version.h src/builtin.inc: src/builtin.jq mkdir -p src - $(AM_V_GEN) sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/\\n"/' $^ > $@ + $(AM_V_GEN) sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/\\n"/' src/builtin.jq > $@ src/builtin.o: src/builtin.inc bin_PROGRAMS = jq @@ -135,10 +135,10 @@ if ENABLE_DOCS jq.1: $(srcdir)/docs/content/3.manual/manual.yml $(AM_V_GEN) ( cd ${abs_srcdir}/docs; '$(BUNDLER)' exec rake manpage ) > $@ || { rm -f $@; false; } jq.1.prebuilt: jq.1 - $(AM_V_GEN) cp $^ $@ || { rm -f $@; false; } + $(AM_V_GEN) cp jq.1 $@ || { rm -f $@; false; } else jq.1: $(srcdir)/jq.1.prebuilt - $(AM_V_GEN) cp $^ $@ + $(AM_V_GEN) cp $(srcdir)/jq.1.prebuilt $@ endif |