mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
build: Fix up gitignore generation rules
Use more sources, and allow adding files to the ignore list when including Makefile.am.gitignore.
This commit is contained in:
parent
8d6cab0e71
commit
7bfd62f755
@ -3,12 +3,14 @@
|
||||
# generator of Git ignore files, and it's not meant to be used as
|
||||
# the top-level Git ignore file generator.
|
||||
|
||||
GIT_IGNORE_FILES = $(noinst_PROGRAMS) $(check_PROGRAMS) $(check_SCRIPTS) $(GIT_IGNORE_EXTRA)
|
||||
|
||||
$(srcdir)/.gitignore: Makefile.am
|
||||
$(QUIET_GEN)( \
|
||||
echo "*.o" ; \
|
||||
echo ".gitignore" ; \
|
||||
) > $(srcdir)/.gitignore ; \
|
||||
for p in $(noinst_PROGRAMS); do \
|
||||
for p in $(GIT_IGNORE_FILES); do \
|
||||
echo "/$$p" >> $(srcdir)/.gitignore ; \
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user