From 72d74d713b28ac4bc7892b347a8a9ad6921fdc04 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 6 Sep 2003 00:38:29 +0000 Subject: Remove more headers when options are disabled --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bcf1c3526..2c75740c4 100644 --- a/Makefile +++ b/Makefile @@ -198,6 +198,19 @@ endif ifneq ($(strip $(UCLIBC_HAS_GETTEXT_AWARENESS)),y) # Remove libintl header if no gettext support. rm $(PREFIX)$(DEVEL_PREFIX)/include/libintl.h +endif +ifneq ($(strip $(UCLIBC_HAS_REGEX)),y) + rm $(PREFIX)$(DEVEL_PREFIX)/include/regex.h + rm $(PREFIX)$(DEVEL_PREFIX)/include/regexp.h +endif +ifneq ($(strip $(UCLIBC_HAS_WORDEXP)),y) + rm $(PREFIX)$(DEVEL_PREFIX)/include/wordexp.h +endif +ifneq ($(strip $(UCLIBC_HAS_FTW)),y) + rm $(PREFIX)$(DEVEL_PREFIX)/include/ftw.h +endif +ifneq ($(strip $(UCLIBC_HAS_GLOB)),y) + rm $(PREFIX)$(DEVEL_PREFIX)/include/glob.h endif -@for i in `find $(PREFIX)$(DEVEL_PREFIX) -type d` ; do \ chmod -f 755 $$i; chmod -f 644 $$i/*.h; \ -- cgit v1.2.3