1
0
Fork 0

build: Autogenerate more ignore files

The tests/accessibility, tests/micro-bench and the examples directory
in the coobook create a lot of non-installed binaries. Since we know who
they are, and we ignore them, we can auto-generate the ignore files as
well.

The rest of Clutter is covered by the main ignore file.
This commit is contained in:
Emmanuele Bassi 2010-08-14 08:43:16 +01:00
parent f14587aadc
commit 94c8635d0f
8 changed files with 33 additions and 18 deletions

View file

@ -6,6 +6,7 @@ EXTRA_DIST = \
Makefile.am.enums \
Makefile.am.changelog \
Makefile.am.gcov \
Makefile.am.gitignore \
dolt.m4 \
introspection.m4 \
gtk-doc.m4 \

View file

@ -0,0 +1,21 @@
# 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" ; \
) > .gitignore ; \
for p in $(noinst_PROGRAMS); do \
echo "/$$p" >> .gitignore ; \
done
gitignore: $(srcdir)/.gitignore
.PHONY: gitignore
DISTCLEANFILES += $(srcdir)/.gitignore
all: gitignore

View file

@ -1,8 +0,0 @@
/animations-rotating
/text-shadow
/textures-reflection
/textures-split-go
/textures-sub-texture
/layouts-stacking
/layouts-stacking-diff-sized-actors
/events-mouse-scroll

View file

@ -40,3 +40,7 @@ textures_sub_texture_SOURCES = textures-sub-texture.c
layouts_stacking_SOURCES = layouts-stacking.c
layouts_stacking_diff_sized_actors_SOURCES = layouts-stacking-diff-sized-actors.c
events_mouse_scroll_SOURCES = events-mouse-scroll.c
DISTCLEANFILES =
-include $(top_srcdir)/build/autotools/Makefile.am.gitignore

View file

@ -1,5 +0,0 @@
/cally-atkcomponent-example
/cally-atkeditabletext-example
/cally-atkevents-example
/cally-atktext-example
/cally-clone-example

View file

@ -61,3 +61,7 @@ cally_clone_example_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS) \
$(INCLUDES)
cally_clone_example_SOURCES = cally-clone-example.c \
$(common_sources)
DISTCLEANFILES =
-include $(top_srcdir)/build/autotools/Makefile.am.gitignore

View file

@ -1,5 +0,0 @@
*.o
/test-picking
/test-random-text
/test-text-perf
/test-text

View file

@ -1,5 +1,7 @@
include $(top_srcdir)/build/autotools/Makefile.am.silent
DISTCLEANFILES =
noinst_PROGRAMS = \
test-text \
test-picking \
@ -26,3 +28,4 @@ test_picking_SOURCES = test-picking.c
test_text_perf_SOURCES = test-text-perf.c
test_random_text_SOURCES = test-random-text.c
-include $(top_srcdir)/build/autotools/Makefile.am.gitignore