Skip to content

Commit

Permalink
added comments to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
l-hoang committed Nov 22, 2016
1 parent ed6be10 commit 7348eb1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 7348eb1

Please sign in to comment.