summaryrefslogtreecommitdiff
path: root/automake.tail.mk
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-03-03 00:36:34 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-03-03 00:36:34 -0500
commit592eded56c45cdecb9ec9b6fc269d6c3e60f4c4c (patch)
tree2e01813250c3ca500010f70810490429c14bb45f /automake.tail.mk
parenta2718bfbd5dee3b5a69fcdb4361748ef84cbd06c (diff)
(rvs) buildsystem
Diffstat (limited to 'automake.tail.mk')
-rw-r--r--automake.tail.mk11
1 files changed, 5 insertions, 6 deletions
diff --git a/automake.tail.mk b/automake.tail.mk
index 5d6ad00..a24820b 100644
--- a/automake.tail.mk
+++ b/automake.tail.mk
@@ -19,8 +19,7 @@ include $(topsrcdir)/common.each.tail.mk
# Aggregate variables
# Add some more defaults to the *_files variables
-$(_am)clean_files += $($(_am)gen_files) $($(_am)out_files)
-$(_am)cfg_files += Makefile
+$(_am)clean_files += $($(_am)gen_files) $($(_am)cfg_files) $($(_am)out_files)
# Now namespace the *_files variables
define _am_save_variables
@@ -103,10 +102,10 @@ $(outdir)/build : $(_am_out_files/%(outdir))
$(outdir)/install: $(_am_sys_files/%(outdir))
# Destructive phony targets
_am_uninstall/%(outdir) = $(_am_sys_files/%(outdir))
-_am_mostlyclean/%(outdir) = $(filter-out $(_am_slow_files/%(outdir)) $(_am_cfg_files/%(outdir)) $(_am_gen_files/%(outdir)),$(_am_clean_files/%(outdir)))
-_am_clean/%(outdir) = $(filter-out $(_am_cfg_files/%(outdir)) $(_am_gen_files/%(outdir)),$(_am_clean_files/%(outdir)))
-_am_distclean/%(outdir) = $(filter-out $(_am_gen_files/%(outdir)),$(_am_clean_files/%(outdir)))
-_am_maintainer-clean/%(outdir) = $(_am_clean_files/%(outdir))
+_am_mostlyclean/%(outdir) = $(filter-out $(_am_slow_files/%(outdir)) $(_am_cfg_files/%(outdir)) $(_am_gen_files/%(outdir)) $(_am_src_files/%(outdir)),$(_am_clean_files/%(outdir)))
+_am_clean/%(outdir) = $(filter-out $(_am_cfg_files/%(outdir)) $(_am_gen_files/%(outdir)) $(_am_src_files/%(outdir)),$(_am_clean_files/%(outdir)))
+_am_distclean/%(outdir) = $(filter-out $(_am_gen_files/%(outdir)) $(_am_src_files/%(outdir)),$(_am_clean_files/%(outdir)))
+_am_maintainer-clean/%(outdir) = $(filter-out $(_am_src_files/%(outdir)),$(_am_clean_files/%(outdir)))
endef
$(foreach outdir,$(_am_outdirs),$(eval $(subst %(outdir),$(outdir),$(value _am_directory_rules))))