Skip to content

Commit

Permalink
Fix broken INSTALL.md.in path while running make distcheck
Browse files Browse the repository at this point in the history
The distcheck target ensures that the distribution tarball is
self-contained, i.e. using only the files present in the distribution it
can create another identical distribution[1]. While doing so, we can't
assume that the current directory is the top-level.

[1] https://www.gnu.org/software/automake/manual/automake.html#Checking-the-Distribution
  • Loading branch information
mptre committed Sep 15, 2017
1 parent ffba800 commit 9034255
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ tests_pick_test_SOURCES=tests/pick-test.c compat-reallocarray.c
tests_pick_test_CFLAGS=$(AM_CFLAGS)

EXTRA_DIST=INSTALL.md INSTALL.md.in LICENSE README.md tests/pick-test.sh $(TESTS)
DISTCLEANFILES=INSTALL.md

INSTALL.md: INSTALL.md.in
sed -e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' $@.in > $@
sed -e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
$(top_srcdir)/$@.in > $@

0 comments on commit 9034255

Please sign in to comment.