Make sure directory $(OCGDIR)/extern is created before building extern
authorChris Want <cwant@ualberta.ca>
Sat, 21 Aug 2004 19:12:59 +0000 (19:12 +0000)
committerChris Want <cwant@ualberta.ca>
Sat, 21 Aug 2004 19:12:59 +0000 (19:12 +0000)
stuff.

extern/Makefile

index ef2bb518dad0341337a9eeb5a73541047f55e039..4bd348c6735a75a75b6ca153023d0614375194fb 100644 (file)
@@ -46,12 +46,14 @@ endif
 # .PHONY: qhull solid solid_with_qhull
 
 all::
+       @[ -d $(OCGDIR)/extern ] || mkdir -p $(OCGDIR)/extern
        @for i in $(DIRS); do \
            echo "====> $(MAKE) $@ in $(SOURCEDIR)/$$i" ;\
            $(MAKE) -C $$i install || exit 1; \
        done
-       
+
 clean test debug::
+       @[ -d $(OCGDIR)/extern ] || mkdir -p $(OCGDIR)/extern
        @for i in $(DIRS); do \
            echo "====> $(MAKE) $@ in $(SOURCEDIR)/$$i" ;\
            $(MAKE) -C $$i $@ || exit 1; \