summaryrefslogtreecommitdiff
path: root/lib/dev
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2020-05-08 22:04:11 +0000
committerJan-Marek Glogowski <glogow@fbihome.de>2020-05-08 22:04:11 +0000
commit7e759ba8417509336128e6eccd912df5b365f609 (patch)
treee1fdceed0cb04ede7ab24623e6e2a7d67114501c /lib/dev
parentc5b8b3ab315f6b402aec5d71de84f35c545faa47 (diff)
downloadnss-hg-7e759ba8417509336128e6eccd912df5b365f609.tar.gz
Bug 1629553 Use order-prereq for $(MAKE_OBJDIR) r=rrelyea
Introduces a simple "%/d" rule to create directories using $(MAKE_OBJDIR) and replace all explicit $(MAKE_OBJDIR) calls with an order-only-prerequisites. To expand the $(@D) prerequisite, this needs .SECONDEXPANSION. Differential Revision: https://phabricator.services.mozilla.com/D70989
Diffstat (limited to 'lib/dev')
-rw-r--r--lib/dev/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/dev/Makefile b/lib/dev/Makefile
index dfc8e1d31..f41333402 100644
--- a/lib/dev/Makefile
+++ b/lib/dev/Makefile
@@ -19,8 +19,7 @@ include $(CORE_DEPTH)/coreconf/rules.mk
ifeq ($(OS_TARGET)$(OS_RELEASE),AIX4.3)
ifeq ($(USE_64),1)
ifndef BUILD_OPT
-$(OBJDIR)/ckhelper.o: ckhelper.c
- @$(MAKE_OBJDIR)
+$(OBJDIR)/ckhelper.o: ckhelper.c | $$(@D)/d
$(CC) -o $@ -c -O2 $(CFLAGS) $<
endif
endif