summaryrefslogtreecommitdiff
blob: 3b24ee40214a77fda6294b6c4a2505bdafe9b2dc (plain)
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
48
49
50
51
52
53
54
55
56
diff --git a/Makefile b/Makefile
index 4db4977..bbd00ed 100644
--- a/Makefile
+++ b/Makefile
@@ -114,15 +114,15 @@ install: all
 
 
 kurtz:
-	cd $(KURTZ_SRC_DIR); $(MAKE) mummer
+	$(MAKE) -C $(KURTZ_SRC_DIR) mummer
 
 
 scripts:
-	cd $(SCRIPT_DIR); $(MAKE) all
+	$(MAKE) -C $(SCRIPT_DIR) all
 
 
 tigr:
-	cd $(TIGR_SRC_DIR); $(MAKE) all
+	$(MAKE) -C $(TIGR_SRC_DIR) all
 
 
 uninstall: clean
diff --git a/src/kurtz/Makefile b/src/kurtz/Makefile
index 85dfc16..5bff793 100644
--- a/src/kurtz/Makefile
+++ b/src/kurtz/Makefile
@@ -1,7 +1,7 @@
 all:
-	cd libbasedir; $(MAKE) all
-	cd streesrc; $(MAKE) all
-	cd mm3src; $(MAKE) all
+	$(MAKE) -C libbasedir all
+	$(MAKE) -C streesrc all
+	$(MAKE) -C mm3src all
 
 clean:
 	rm -f *~
@@ -10,11 +10,11 @@ clean:
 	cd mm3src; $(MAKE) clean
 
 mummer:
-	cd libbasedir; $(MAKE) libbase.a
-	cd streesrc; $(MAKE) libstree.a
-	cd mm3src; $(MAKE) mummer
+	$(MAKE) -C libbasedir libbase.a
+	$(MAKE) -C streesrc libstree.a
+	$(MAKE) -C mm3src mummer
 
 splintall:
-	cd libbasedir; ${MAKE} splintall
-	cd streesrc; ${MAKE} splintall
-	cd mm3src; ${MAKE} splintall
+	$(MAKE) -C libbasedir splintall
+	$(MAKE) -C streesrc splintall
+	$(MAKE) -C mm3src splintall