-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (37 loc) · 1.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -----------------------------------------------------------------------------
# There is a better way, but this is a decent first start.
PKGS = lists/linkedlist \
lists/sortedlinkedlist \
sorting/countingsort \
sorting/insertionsort \
sorting/mergesort \
sorting/quicksort \
trees/binarysearchtree \
trees/btree \
trees/stringprefixtrie \
tables/hashtable \
dynamicprogramming/fibonacci \
dynamicprogramming/knapsack \
graphs/depthfirstsearch
all: $(PKGS)
$(PKGS):
$(MAKE) -C $@
# -----------------------------------------------------------------------------
# graphs
depthfirstsearch:
$(MAKE) -C graphs/depthfirstsearch
# -----------------------------------------------------------------------------
# trees
binarysearchtree:
$(MAKE) -C trees/binarysearchtree
btree:
$(MAKE) -C trees/btree
# -----------------------------------------------------------------------------
# sorting
insertionsort:
$(MAKE) -C sorting/insertionsort
clean:
for dir in $(PKGS); do \
$(MAKE) -C $$dir clean; \
done;
.PHONY: all $(PKGS) clean btree binarysearchtree insertionsort