path: root/makefile
diff options
authorBoris Kolpackov <boris@codesynthesis.com>2013-02-09 06:09:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-02-09 06:09:22 +0200
commitdc687d03be0ee36465b7001b63cf6a25c7d4900b (patch)
tree2e0c48bc2564d108baccfa92e6d1dfa3c9bd45b9 /makefile
parenta41875556c60a5c90b725c0d83fb45c832f45965 (diff)
Don't distribute empty tests directory
Besides being pointless, this also doesn't work well with newer automake versions.
Diffstat (limited to 'makefile')
1 files changed, 5 insertions, 2 deletions
diff --git a/makefile b/makefile
index d1b2ba8..85377c7 100644
--- a/makefile
+++ b/makefile
@@ -15,14 +15,17 @@ clean := $(out_base)/.clean
$(default): $(addprefix $(out_base)/,$(addsuffix /,$(dirs)))
$(test): $(addprefix $(out_base)/,$(addsuffix /.test,$(dirs)))
-$(dist): export dirs := $(dirs)
+# No dist support for tests for now.
+dist_dirs := $(filter-out tests,$(dirs))
+$(dist): export dirs := $(dist_dirs)
$(dist): export docs := LICENSE NEWS README INSTALL version
$(dist): data_dist := libcutl-vc9.sln libcutl-vc10.sln
$(dist): exec_dist := bootstrap
$(dist): export extra_dist := $(data_dist) $(exec_dist)
$(dist): export version = $(shell cat $(src_root)/version)
-$(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(dirs)))
+$(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(dist_dirs)))
$(call dist-data,$(docs) $(data_dist) libcutl.pc.in)
$(call dist-exec,$(exec_dist))
$(call dist-dir,m4)