2010-08-14 07:43:16 +00: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 19:39:33 +00:00
|
|
|
GIT_IGNORE_FILES = $(noinst_PROGRAMS) $(check_PROGRAMS) $(check_SCRIPTS) $(GIT_IGNORE_EXTRA)
|
|
|
|
|
2015-04-23 20:23:50 +00:00
|
|
|
.gitignore: Makefile.am
|
2015-04-23 20:33:30 +00: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 07:43:16 +00:00
|
|
|
|
2015-04-23 20:23:50 +00:00
|
|
|
gitignore: .gitignore
|
2010-08-14 07:43:16 +00:00
|
|
|
|
2010-08-15 17:42:54 +00:00
|
|
|
gitignore-clean:
|
2015-04-23 20:23:50 +00:00
|
|
|
$(QUIET_RM)rm -f .gitignore
|
2010-08-14 07:43:16 +00:00
|
|
|
|
2010-08-15 17:42:54 +00:00
|
|
|
.PHONY: gitignore gitignore-clean
|
2010-08-14 07:43:16 +00:00
|
|
|
|
2011-02-21 12:46:34 +00:00
|
|
|
all-am: gitignore
|
2010-08-15 17:42:54 +00:00
|
|
|
|
|
|
|
maintainer-clean: gitignore-clean
|