Skip to content

Commit

Permalink
tools/flex: 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.

Skip the build for po files as well, which is causing a conflict
depending on the version of gettext detected, and macros present.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
  • Loading branch information
mpratt14 authored and pull[bot] committed Dec 17, 2023
1 parent 3aab8f8 commit 819e369
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
8 changes: 6 additions & 2 deletions tools/flex/Makefile
Expand Up @@ -21,13 +21,17 @@ include $(INCLUDE_DIR)/host-build.mk

HOST_CONFIGURE_ARGS += --disable-shared

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

define Host/Install
$(call Host/Install/Default)
$(call Host/Compile/Default,install SUBDIRS='src tools')
$(LN) flex $(STAGING_DIR_HOST)/bin/lex
endef

define Host/Uninstall
-$(call Host/Compile/Default,uninstall)
-$(call Host/Compile/Default,uninstall SUBDIRS='src tools')
endef

define Host/Clean
Expand Down
13 changes: 0 additions & 13 deletions tools/flex/patches/100-disable-tests-docs.patch

This file was deleted.

0 comments on commit 819e369

Please sign in to comment.