Akira TAGOH  committed 9ab3dff

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
libeasyfc, where contains the library's source code, 'make' confuses
the top directory is the target directory for 'libeasyfc'.
.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.

  • Participants
  • Parent commits 612aa00
  • Branches master

Comments (0)

Files changed (1)

 ### .gitignore generation
-$(srcdir)/.gitignore: $(top_srcdir)/
+$(abs_srcdir)/.gitignore: $(srcdir)/ $(top_srcdir)/
 	$(AM_V_GEN) \
 	{ \
 		if test "x$(DOC_MODULE)" = x -o "x$(DOC_MAIN_SGML_FILE)" = x; then :; else \
 	LC_ALL=C sort | uniq > $@.tmp && \
 	mv $@.tmp $@;
-all: $(srcdir)/.gitignore gitignore-recurse-maybe
+all: $(abs_srcdir)/.gitignore gitignore-recurse-maybe
 	@if test "x$(SUBDIRS)" = "x$(DIST_SUBDIRS)"; then :; else \
 		$(MAKE) $(AM_MAKEFLAGS) gitignore-recurse; \