Skip to content

Commit

Permalink
tools/gengetopt: override SUBDIRS variable with Makefile
Browse files Browse the repository at this point in the history
Instead of editing the SUBDIRS variable with a patch,
it can be overriden at the end of the command line when invoking Make.

This tool has a series of recursive Makefiles in each subdirectory,
therefore SUBDIRS is set to a pattern of Make functions
so that the result is variable depending on the current subdirectory
that Make is being invoked in.

By eliminating the patch, autoreconf is no longer required.

Signed-off-by: Michael Pratt <[email protected]>
  • Loading branch information
mcprat authored and Ansuel committed May 4, 2023
1 parent e764a90 commit 4437434
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 34 deletions.
6 changes: 5 additions & 1 deletion tools/gengetopt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
PKG_HASH:=b941aec9011864978dd7fdeb052b1943535824169d2aa2b0e7eae9ab807584ac

HOST_FIXUP:=autoreconf
PKG_SUBDIRS:=$$$$(foreach dir,gl src skels,$$$$(wildcard $$$$(dir)) )

HOST_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/host-build.mk

define Host/Compile
$(call Host/Compile/Default,SUBDIRS='$(PKG_SUBDIRS)')
endef

define Host/Install
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/gengetopt $(STAGING_DIR_HOST)/bin/
endef
Expand Down
33 changes: 0 additions & 33 deletions tools/gengetopt/patches/100-no-tests-docs.patch

This file was deleted.

0 comments on commit 4437434

Please sign in to comment.