# HG changeset patch # User nenolod # Date 1140997850 28800 # Node ID e4069b00b1741f994ad22bc022114709dc4d49cf # Parent c0b4fba1624752258464028282ed5fcf8c387760 [svn] - fix diff -r c0b4fba16247 -r e4069b00b174 mk/objective.mk --- 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]"; \