summaryrefslogtreecommitdiff
blob: 5dc61c72bc325b5872186b6696634375804ab693 (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
57
58
59
60
61
62
63
64
65
66
Index: cabal-1.1.4/Makefile
===================================================================
--- cabal-1.1.4.orig/Makefile
+++ cabal-1.1.4/Makefile
@@ -67,7 +67,7 @@ haddock: setup
 	./setup haddock
 
 clean-doc:
-	cd doc && make clean
+	cd doc && $(MAKE) clean
 
 doc: haddock
 	docbook2html doc/Cabal.xml --output doc/users-guide
@@ -86,11 +86,11 @@ clean-cabal:
 
 clean-hunit:
 	-rm -f hunit-stamp hunitInstall-stamp
-	cd tests/HUnit-1.0 && make clean
+	cd tests/HUnit-1.0 && $(MAKE) clean
 
 clean-test:
-	cd tests/A && make clean
-	cd tests/wash2hs && make clean
+	cd tests/A && $(MAKE) clean
+	cd tests/wash2hs && $(MAKE) clean
 
 remove: remove-cabal remove-hunit
 remove-cabal:
@@ -104,7 +104,7 @@ remove-hunit:
 
 hunit: hunit-stamp
 hunit-stamp:
-	cd tests/HUnit-1.0 && make && ./setup configure --prefix=$(PREF) && ./setup build
+	cd tests/HUnit-1.0 && $(MAKE) && ./setup configure --prefix=$(PREF) && ./setup build
 	touch $@
 
 hunitInstall: hunitInstall-stamp
@@ -119,14 +119,14 @@ moduleTest:
 	$(HC) $(GHCFLAGS) $(ISPOSIX) -DDEBUG -odir dist/debug -hidir dist/debug -idist/debug/:src:tests/HUnit-1.0/src tests/ModuleTest.hs -o moduleTest 
 
 tests: moduleTest clean
-	cd tests/A && make clean
-	cd tests/HUnit-1.0 && make clean
-	cd tests/A && make
-	cd tests/HUnit-1.0 && make
+	cd tests/A && $(MAKE) clean
+	cd tests/HUnit-1.0 && $(MAKE) clean
+	cd tests/A && $(MAKE)
+	cd tests/HUnit-1.0 && $(MAKE)
 
 check:
 	rm -f moduleTest
-	make moduleTest
+	$(MAKE) moduleTest
 	./moduleTest
 
 # distribution...
@@ -170,7 +170,7 @@ dist: haddock $(CABALBALL)
 	mv $(CABALBALL) $(TMPDISTLOC)
 	cd $(TMPDISTLOC) && tar -zxvf $(CABALBALL) && mv Cabal cabal
 	#mkdir $(TMPDISTLOC)/cabal/doc
-	make doc
+	$(MAKE) doc
 	cp -r dist/doc/html $(TMPDISTLOC)/cabal/doc/API
 	cp -r doc/users-guide $(TMPDISTLOC)/cabal/doc/users-guide
 	cd ~/usr/doc/haskell/haskell-report/packages && docbook2html -o /tmp/pkg-spec-html pkg-spec.sgml && docbook2pdf pkg-spec.sgml -o /tmp