Set PKG_SUBDIRS in the package Makefile instead of patching Makefile.in
to exclude doc, tests, and gnulib-tests.
Signed-off-by: Wei-Ting Yang <redacted>
PKG_NAME:=grep
PKG_VERSION:=3.12
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNU/grep
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
+PKG_SUBDIRS:=po lib src
include $(INCLUDE_DIR)/package.mk
+++ /dev/null
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -2399,7 +2399,7 @@ top_srcdir = @top_srcdir@
- # along with this program. If not, see <https://www.gnu.org/licenses/>.
- #
- AUTOMAKE_OPTIONS = gnu 1.12
--SUBDIRS = po lib doc src tests gnulib-tests
-+SUBDIRS = po lib src
- EXTRA_DIST = \
- .mailmap \
- ChangeLog-2009 \