changeset 708:e4069b00b174 trunk

[svn] - fix
author nenolod
date Sun, 26 Feb 2006 15:50:50 -0800
parents c0b4fba16247
children f4af4f87850e
files mk/objective.mk
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mk/objective.mk	Sun Feb 26 15:46:14 2006 -0800
+++ b/mk/objective.mk	Sun Feb 26 15:50:50 2006 -0800
@@ -13,18 +13,16 @@
 INCLUDEDIR = $(pkgincludedir)
 CFLAGS += -DHAVE_CONFIG_H
 
-OBJ_DIRS = $(BINDIR) $(LIBDIR) $(INCLUDEDIR)
-
 default: all
 all: build
 
 install:
 	$(MAKE) install-prehook
-	@if test ! -d $(DESTDIR)/$(BINDIR); then \
-		for i in $(OBJ_DIRS); do \
+	@for i in $(BINDIR) $(LIBDIR) $(INCLUDEDIR); do \
+		if test ! -d $(DESTDIR)/$$i; then \
 			$(INSTALL) -d -m 755 $(DESTDIR)/$$i; \
-		done; \
-	fi
+		fi; \
+	done;
 	@if test "$(SUBDIRS)" != "none"; then \
 		for i in $(SUBDIRS); do \
 			echo "[installing subobjective: $$i]"; \