Initial Import
[profile/ivi/json-glib.git] / build / autotools / Makefile.am.gitignore
1 # this file should only be used in directories that generate test
2 # or example binaries through noinst_PROGRAMS; it is *not* a full
3 # generator of Git ignore files, and it's not meant to be used as
4 # the top-level Git ignore file generator.
5
6 $(srcdir)/.gitignore: Makefile.am
7         $(QUIET_GEN)( \
8           echo "*.o" ; \
9           echo ".gitignore" ; \
10         ) > $(srcdir)/.gitignore ; \
11         for p in $(noinst_PROGRAMS); do \
12                 echo "/$$p" >> $(srcdir)/.gitignore ; \
13         done
14
15 gitignore: $(srcdir)/.gitignore
16
17 gitignore-clean:
18         $(QUIET_RM)rm -f $(srcdir)/.gitignore
19
20 .PHONY: gitignore gitignore-clean
21
22 all: gitignore
23
24 maintainer-clean: gitignore-clean