From 886b274a5cbe66f470867004a73384451b140c19 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 20 Oct 2008 11:32:25 +0000 Subject: BR2_HAVE_DOCUMENTATION: add option to remove documentation from target Some packages' install-strip target install quite big documentation, so create an option to remove it similar to the existing man/info options. --- package/Makefile.autotools.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'package') diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in index 0925feb06..9f7a54807 100644 --- a/package/Makefile.autotools.in +++ b/package/Makefile.autotools.in @@ -256,6 +256,9 @@ $(PROJECT_BUILD_DIR)/autotools-stamps/%_target_installed: $(if $(BR2_HAVE_INFOPAGES),,for d in info share/info; do \ rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d; \ done) + $(if $(BR2_HAVE_DOCUMENTATION),,for d in doc share/doc; do \ + rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d; \ + done) $(Q)mkdir -p $(@D) touch $@ -- cgit v1.2.3