From 0f93724465505959b51bbc7855f4e8e317d9958f Mon Sep 17 00:00:00 2001 From: Greg Pfeil Date: Wed, 7 Jan 2015 09:23:30 -0700 Subject: [PATCH] Make sure $TEST_DIR is created. --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 70d22d7..6585526 100644 --- a/Makefile +++ b/Makefile @@ -28,15 +28,18 @@ build : (add-to-list 'custom-theme-load-path \"./\") \ (load-theme 'solarized t))" -test-dep-1 : +init : + mkdir -p $(TEST_DIR) + +test-dep-1 : init @cd $(TEST_DIR) && \ $(EMACS) $(EMACS_BATCH) -L . -L .. -l $(TEST_DEP_1) || \ (echo "Can't load test dependency $(TEST_DEP_1).el, run 'make downloads' to fetch it" ; exit 1) -downloads : +downloads : init $(CURL) '$(TEST_DEP_1_STABLE_URL)' > $(TEST_DIR)/$(TEST_DEP_1).el -downloads-latest : +downloads-latest : init $(CURL) '$(TEST_DEP_1_LATEST_URL)' > $(TEST_DIR)/$(TEST_DEP_1).el autoloads :