summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-11-16 15:58:33 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-11-16 15:58:33 +0000
commit9f77c8c4934538ef7bc6964d8a7e6ac0945c8447 (patch)
treebcdd806938e6fea3103347270141a55a21a72b29
parentfd7ec01d623badde0f36dce9e898eadb7b92543a (diff)
Don't install shadow.h if shadow password support is disabled.
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c8a4421f9..7144b1b24 100644
--- a/Makefile
+++ b/Makefile
@@ -238,6 +238,10 @@ ifneq ($(strip $(UCLIBC_HAS_GNU_GETOPT)),y)
# Remove getopt header since gnu getopt support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/getopt.h
endif
+ifneq ($(strip $(HAS_SHADOW)),y)
+ # Remove getopt header since shadow password support is disabled.
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/shadow.h
+endif
-@for i in `find $(PREFIX)$(DEVEL_PREFIX) -type d` ; do \
chmod 755 $$i; chmod 644 $$i/*.h > /dev/null 2>&1; \
done;