From 7348eb1ce6a8b29808d577c0866f2ef563b4cef1 Mon Sep 17 00:00:00 2001 From: Loc Hoang Date: Mon, 21 Nov 2016 23:11:09 -0600 Subject: [PATCH] added comments to Makefile --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ae890bf..998bc75 100644 --- a/Makefile +++ b/Makefile @@ -2,15 +2,18 @@ MODULES:=java/dummy #cpp/greedy #rust/2opt +# Points to the location where we will get the TSP problem data from TSPLIB_MIRROR:=http://comopt.ifi.uni-heidelberg.de/software/TSPLIB95 TSPLIB:=$(TSPLIB_MIRROR)/tsp TSPLIB_XML:=$(TSPLIB_MIRROR)/XML-TSPLIB/instances TSPLIB_280:=a280 +# Defining the location where the data will be saved DATA_DIR:=data - TEST_FILE:=$(CURDIR)/$(DATA_DIR)/$(TSPLIB_280) +# Tells make to run these rules regardless of whether or not a file with +# these names exist .PHONY: compile run clean depclean $(MODULES) all: $(DATA_DIR) @@ -23,9 +26,11 @@ clean: $(MAKE) -C $$mod clean; \ done +# Removes the data directory depclean: clean rm -rf $(DATA_DIR) +# Initializes the data directory: downloads the TSP data and unzips and such $(DATA_DIR): mkdir $(DATA_DIR) wget -P $(DATA_DIR) $(TSPLIB)/$(TSPLIB_280).tsp.gz