summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2008-02-21 17:09:02 +0900
committerSimon Horman <horms@verge.net.au>2008-02-21 17:09:02 +0900
commite959e493753c740eb7554bc2191c58b079761e11 (patch)
tree1d791f5a22e7e8c7317a85710710abc0cf3f2d07 /Makefile.in
parentd098d61ba4e32f3e5786cb8037e949c2ea5a5b64 (diff)
downloadkexec-tools-e959e493753c740eb7554bc2191c58b079761e11.tar.gz
Only include needed files in distribution tarball
With the recent build changes a number of unneded files crept into tarballs, including .o and .d files. This patch is farily verbose, but hopefully in the long run this system will be obvious enough to be maintainable. Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in22
1 files changed, 14 insertions, 8 deletions
diff --git a/Makefile.in b/Makefile.in
index 62a8cefd..e5f063e7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -123,11 +123,23 @@ all: $(TARGETS)
# collect objects to be removed in 'make clean'
clean =
+# collect objects to be removed in 'make clean'
+dist = AUTHORS COPYING News TODO Makefile.in configure.ac \
+ kexec-tools.spec.in config/
+
# utility function for converting a list of files (with extension) to
# file.o (or file.d) format.
objify = $(addsuffix .o, $(basename $(1)))
depify = $(addsuffix .d, $(basename $(1)))
+# Documentation
+#
+include $(srcdir)/doc/Makefile
+
+# Headers
+#
+include $(srcdir)/include/Makefile
+
# Utility function library
#
include $(srcdir)/util_lib/Makefile
@@ -155,20 +167,13 @@ include $(srcdir)/kdump/Makefile
#
# kexec_test (test program)
#
-ifeq ($(ARCH),i386)
-include $(srcdir)/kexec_test/Makefile
-endif
-ifeq ($(ARCH),x86_64)
include $(srcdir)/kexec_test/Makefile
-endif
SPEC=$(PACKAGE_NAME).spec
GENERATED_SRCS:= $(SPEC)
TARBALL=$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar
TARBALL.gz=$(TARBALL).gz
-SRCS:= AUTHORS COPYING News TODO Makefile.in configure.ac \
- kexec-tools.spec.in config doc include kexec purgatory kexec_test \
- kdump util util_lib configure
+SRCS:= $(dist)
PSRCS:=$(foreach s, $(SRCS), $(PACKAGE_NAME)-$(PACKAGE_VERSION)/$(s))
PGSRCS:=$(foreach s, $(GENERATED_SRCS), $(PACKAGE_NAME)-$(PACKAGE_VERSION)/$(s))
@@ -188,6 +193,7 @@ $(TARBALL): $(SRCS) $(GENERATED_SRCS)
$(LN) -sf . $(PACKAGE_NAME)-$(PACKAGE_VERSION)
$(TAR) -rf $@ $(PGSRCS)
$(RM) -f $(PACKAGE_NAME)-$(PACKAGE_VERSION)
+ @echo $(dist)
$(TARBALL.gz): $(TARBALL)
gzip -c < $^ > $@