aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-10-06 19:02:43 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-10-06 19:08:26 -0700
commit3c8b344a4107c98456bc1b49ce47e7c8f0daaf79 (patch)
tree4806bfbcfbe4741ec6d3ec70d13bc909d3bc5768
parent46241e383f3f724a97b80c050ff265d9f7486420 (diff)
Rebuild fish.pc as appropriate
Re-running ./configure will cause fish.pc to rebuild, in case any of the paths changed. It looks like this actually won't rebuild the rest of fish, but figuring out how to handle that is out of scope for this commit. More importantly, this will rebuild fish.pc when the version string changes.
-rw-r--r--Makefile.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 83bce603..83645e2f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -443,8 +443,10 @@ doc.h: $(HDR_FILES)
cat $*.txt >>$@;
echo "*/" >>$@
-%: %.in
- $(SED) <$@.in >$@ \
+# Depend on Makefile because I don't see a better way of rebuilding
+# if any of the paths change.
+%: %.in Makefile FISH-BUILD-VERSION-FILE
+ $(SED) <$< >$@ \
-e "s,@sysconfdir\@,$(sysconfdir),g" \
-e "s,@datadir\@,$(datadir),g" \
-e "s,@docdir\@,$(docdir),g" \