aboutsummaryrefslogtreecommitdiff
path: root/libcommon/common/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-12 17:03:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-12 17:03:45 +0200
commit2026ac6d0c0eb59248583632b4fa9e78c0bdbdfc (patch)
tree3ddc335988af2e2676cade7ac799ffd7696fdb54 /libcommon/common/makefile
parent70ab4cae25550bcab13ea6193e315a124e2cc763 (diff)
Don't version-control generated code
Diffstat (limited to 'libcommon/common/makefile')
-rw-r--r--libcommon/common/makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcommon/common/makefile b/libcommon/common/makefile
index 2987959..7349690 100644
--- a/libcommon/common/makefile
+++ b/libcommon/common/makefile
@@ -97,7 +97,8 @@ $(dist): $(gen)
$(clean): $(common.l).o.clean \
$(common.l.cpp-options).clean \
$(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od))
+ $(addsuffix .cxx.clean,$(cxx_od)) \
+ $(addprefix $(out_base)/,$(cli_tun:.cli=.cxx.cli.clean))
$(call message,rm $$1,rm -f $$1,$(out_base)/config.h)
# Generated .gitignore.
@@ -105,7 +106,7 @@ $(clean): $(common.l).o.clean \
ifeq ($(out_base),$(src_base))
$(common.l): | $(out_base)/.gitignore
-$(out_base)/.gitignore: files := config.h
+$(out_base)/.gitignore: files := config.h $(genf)
$(clean): $(out_base)/.gitignore.clean
$(call include,$(bld_root)/git/gitignore.make)