From f148388227e7ee5349a373bdb8299d38d59ac4a3 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Fri, 8 Dec 2017 21:01:58 +0100 Subject: [PATCH] ports: hook to filter content of noux install The new variable 'INSTALL_TAR_CONTENT' allows one to customize the content of the generated tar archive instead of including the entire install directory. --- repos/ports/mk/gnu_build.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/repos/ports/mk/gnu_build.mk b/repos/ports/mk/gnu_build.mk index 062976df09..1822cc9847 100644 --- a/repos/ports/mk/gnu_build.mk +++ b/repos/ports/mk/gnu_build.mk @@ -36,8 +36,13 @@ PKG ?= $(TARGET) # 'make install' rule is created. By setting the 'INSTALL_TREE' variable # to a non-empty value, a symlink to the actual file tree is created. # +# By default, the generated tar archive contains the entire content of the +# package's install directory. The 'INSTALL_TAR_CONTENT' variable may be +# overriden to manually specify only the parts of the content. +# INSTALL_TREE ?= INSTALL_TAR_ARCHIVE ?= yes +INSTALL_TAR_CONTENT ?= . LIBS += posix @@ -202,7 +207,7 @@ installed_tree.tag: installed.tag # via the VFS tar file system # installed_tar.tag: installed.tag - $(VERBOSE)tar cf $(TARGET).tar -h -C $(PWD)/install . + $(VERBOSE)tar cf $(TARGET).tar -h -C $(PWD)/install $(INSTALL_TAR_CONTENT) $(VERBOSE)rm -f $(INSTALL_DIR)/$(TARGET) $(VERBOSE)ln -sf $(PWD)/$(TARGET).tar $(INSTALL_DIR)/$(TARGET).tar