Explorar o código

add missing target directory, when rebuilding

Waldemar Brodkorb %!s(int64=13) %!d(string=hai) anos
pai
achega
73eae5760f
Modificáronse 1 ficheiros con 6 adicións e 3 borrados
  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 \