Skip to content

Commit

Permalink
[build] add $(BUILT_SOURCES) to $(CLEANFILES)
Browse files Browse the repository at this point in the history
The 'distclean' target should completely cleans the build directory, so that
$(builddir) contains only directories.  This means that all built sources have
to be included in CLEANFILES, or they're left behind.

Signed-off-by: Aaron Plattner <[email protected]>
Signed-off-by: Brian Nguyen <[email protected]>
  • Loading branch information
aaronp24 authored and brnguyen2 committed Sep 27, 2013
1 parent 61360bc commit c6dbd57
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/GL/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ libGL_la_SOURCES = \
glapitemp.h

BUILT_SOURCES = glapitemp.h
CLEANFILES = $(BUILT_SOURCES)

TOP = $(top_srcdir)
GLAPI = $(top_srcdir)/$(MAPI_PREFIX)/glapi
Expand Down
1 change: 1 addition & 0 deletions src/OpenGL/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ libOpenGL_la_SOURCES = \
glapitemp.h

BUILT_SOURCES = glapitemp.h
CLEANFILES = $(BUILT_SOURCES)

TOP = $(top_srcdir)
GLAPI = $(top_srcdir)/$(MAPI_PREFIX)/glapi
Expand Down
2 changes: 1 addition & 1 deletion src/arch/x86-64/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ noinst_PROGRAMS = gen_matypes

gen_matypes_SOURCES = ../x86/gen_matypes.c
BUILT_SOURCES = matypes.h
CLEANFILES = matypes.h
CLEANFILES = $(BUILT_SOURCES)

matypes.h: gen_matypes
$(AM_V_GEN)./gen_matypes > $@
Expand Down
2 changes: 1 addition & 1 deletion src/arch/x86/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ noinst_PROGRAMS = gen_matypes

gen_matypes_SOURCES = gen_matypes.c
BUILT_SOURCES = matypes.h
CLEANFILES = matypes.h
CLEANFILES = $(BUILT_SOURCES)

matypes.h: gen_matypes
$(AM_V_GEN)./gen_matypes > $@
Expand Down

0 comments on commit c6dbd57

Please sign in to comment.