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