Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update .gitignore even if srcdir != builddir

When srcdir != builddir, autotools sets VPATH = @srcdir@.
due to this and unfortunately the top directory has same name to
liblangtag, where contains the library's source code, make confuses
the top directory is the target directory for 'liblangtag'.
.gitignore is already available since building is performed at the top
therefore .gitignore considered available.

To avoid this confusion on make, abs_srcdir has to be used for target.
  • Loading branch information...
commit 8bcdf54202e278cb915724b1d97a2c486f5ef862 1 parent ae81a0a
Akira TAGOH authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 git.mk
4 git.mk
@@ -84,7 +84,7 @@ git-mk-install:
84 84
85 85 ### .gitignore generation
86 86
87   -$(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
  87 +$(abs_srcdir)/.gitignore: $(srcdir)/Makefile.am $(top_srcdir)/git.mk
88 88 $(AM_V_GEN) \
89 89 { \
90 90 if test "x$(DOC_MODULE)" = x -o "x$(DOC_MAIN_SGML_FILE)" = x; then :; else \
@@ -185,7 +185,7 @@ $(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
185 185 LC_ALL=C sort | uniq > $@.tmp && \
186 186 mv $@.tmp $@;
187 187
188   -all: $(srcdir)/.gitignore gitignore-recurse-maybe
  188 +all: $(abs_srcdir)/.gitignore gitignore-recurse-maybe
189 189 gitignore-recurse-maybe:
190 190 @if test "x$(SUBDIRS)" = "x$(DIST_SUBDIRS)"; then :; else \
191 191 $(MAKE) $(AM_MAKEFLAGS) gitignore-recurse; \

0 comments on commit 8bcdf54

Please sign in to comment.
Something went wrong with that request. Please try again.