diff options
author | Simon Horman <horms@verge.net.au> | 2008-02-21 17:09:02 +0900 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2008-02-21 17:09:02 +0900 |
commit | e959e493753c740eb7554bc2191c58b079761e11 (patch) | |
tree | 1d791f5a22e7e8c7317a85710710abc0cf3f2d07 /Makefile.in | |
parent | d098d61ba4e32f3e5786cb8037e949c2ea5a5b64 (diff) |
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.in | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/Makefile.in b/Makefile.in index 62a8cef..e5f063e 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 < $^ > $@ |