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.
|
|
|
|
|
|
|
|
$(srcdir)/.gitignore: Makefile.am
|
|
|
|
$(QUIET_GEN)( \
|
|
|
|
echo "*.o" ; \
|
|
|
|
echo ".gitignore" ; \
|
2010-08-15 17:42:54 +00:00
|
|
|
) > $(srcdir)/.gitignore ; \
|
2010-08-14 07:43:16 +00:00
|
|
|
for p in $(noinst_PROGRAMS); do \
|
2010-08-15 17:42:54 +00:00
|
|
|
echo "/$$p" >> $(srcdir)/.gitignore ; \
|
2010-08-14 07:43:16 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
gitignore: $(srcdir)/.gitignore
|
|
|
|
|
2010-08-15 17:42:54 +00:00
|
|
|
gitignore-clean:
|
|
|
|
$(QUIET_RM)rm -f $(srcdir)/.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
|