Browse Source

add missing target directory, when rebuilding

Waldemar Brodkorb 13 years ago
parent
commit
73eae5760f
1 changed files with 6 additions and 3 deletions
  1. 6 3
      tools/adk/Makefile

+ 6 - 3
tools/adk/Makefile

@@ -3,13 +3,16 @@
 
 include $(TOPDIR)/rules.mk
 
-${TOPDIR}/bin/tools/depmaker:
+$(TOPDIR)/bin/tools:
+	@mkdir -p $(TOPDIR)/bin/tools
+
+${TOPDIR}/bin/tools/depmaker: $(TOPDIR)/bin/tools
 	$(HOSTCC) -o $(TOPDIR)/bin/tools/depmaker depmaker.c
 
-${TOPDIR}/bin/tools/pkgrebuild:
+${TOPDIR}/bin/tools/pkgrebuild: $(TOPDIR)/bin/tools
 	$(HOSTCC) -o $(TOPDIR)/bin/tools/pkgrebuild pkgrebuild.c strmap.c
 
-${TOPDIR}/bin/tools/pt:
+${TOPDIR}/bin/tools/pt: $(TOPDIR)/bin/tools
 	$(HOSTCC) -o $(TOPDIR)/bin/tools/pt pt.c
 
 install: ${TOPDIR}/bin/tools/depmaker ${TOPDIR}/bin/tools/pkgrebuild \