2010-08-14 03:43:16 -04:00
|
|
|
# this file should only be used in directories that generate test
|
|
|
|
# or example binaries through noinst_PROGRAMS; it is *not* a full
|
|
|
|
# generator of Git ignore files, and it's not meant to be used as
|
|
|
|
# the top-level Git ignore file generator.
|
|
|
|
|
2015-01-01 14:39:33 -05:00
|
|
|
GIT_IGNORE_FILES = $(noinst_PROGRAMS) $(check_PROGRAMS) $(check_SCRIPTS) $(GIT_IGNORE_EXTRA)
|
|
|
|
|
2015-04-23 16:23:50 -04:00
|
|
|
.gitignore: Makefile.am
|
2015-04-23 16:33:30 -04:00
|
|
|
$(QUIET_GEN)if test -d "$(top_srcdir)/.git"; then \
|
|
|
|
( echo "*.o" ; \
|
|
|
|
echo ".gitignore" ; \
|
|
|
|
) > .gitignore ; \
|
|
|
|
for p in $(GIT_IGNORE_FILES); do \
|
|
|
|
echo "/$$p" >> .gitignore ; \
|
|
|
|
done \
|
|
|
|
fi
|
2010-08-14 03:43:16 -04:00
|
|
|
|
2015-04-23 16:23:50 -04:00
|
|
|
gitignore: .gitignore
|
2010-08-14 03:43:16 -04:00
|
|
|
|
2010-08-15 13:42:54 -04:00
|
|
|
gitignore-clean:
|
2015-04-23 16:23:50 -04:00
|
|
|
$(QUIET_RM)rm -f .gitignore
|
2010-08-14 03:43:16 -04:00
|
|
|
|
2010-08-15 13:42:54 -04:00
|
|
|
.PHONY: gitignore gitignore-clean
|
2010-08-14 03:43:16 -04:00
|
|
|
|
2011-02-21 07:46:34 -05:00
|
|
|
all-am: gitignore
|
2010-08-15 13:42:54 -04:00
|
|
|
|
|
|
|
maintainer-clean: gitignore-clean
|