Debian Codegraph @

Makefile

raw
1 all: setup
2 @echo "Please use Cabal to build this package; not make."
3 ./setup configure
4 ./setup build
5
6 setup: Setup.hs
7 ghc --make -package Cabal -o setup Setup.hs
8
9 install: setup
10 ./setup install
11
12 clean:
13 -runghc Setup.hs clean
14 -rm -rf html `find . -name "*.o"` `find . -name "*.hi" | grep -v debian` \
15 `find . -name "*~" | grep -v debian` *.a setup dist testsrc/runtests \
16 local-pkg doctmp
17 -rm -rf testtmp/* testtmp*
18
19 .PHONY: test
20 test: test-ghc test-hugs
21 @echo ""
22 @echo "All tests pass."
23
24 test-hugs: setup
25 @echo " ****** Running hugs tests"
26 ./setup configure -f buildtests --hugs --extra-include-dirs=/usr/lib/hugs/include
27 ./setup build
28 runhugs -98 +o -P$(PWD)/dist/scratch:$(PWD)/dist/scratch/programs/runtests: \
29 dist/scratch/programs/runtests/Main.hs
30
31 test-ghc: setup
32 @echo " ****** Building GHC tests"
33 ./setup configure -f buildtests
34 ./setup build
35 @echo " ****** Running GHC tests"
36 ./dist/build/runtests/runtests