Skip to content

Commit

Permalink
Simplifying/optimizing Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoerzen committed Jan 28, 2009
1 parent 9124e9c commit 75c8a8c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
21 changes: 12 additions & 9 deletions Makefile
@@ -1,13 +1,16 @@
all:
all: setup
@echo "Please use Cabal to build this package; not make."
runghc Setup.lhs configure
runghc Setup.lhs build
./setup configure
./setup build

setup: Setup.hs
ghc --make -package cabal -o setup Setup.hs

install:
runghc Setup.lhs install
./setup install

clean:
runghc Setup.lhs clean
-runghc Setup.hs clean
-rm -rf html `find . -name "*.o"` `find . -name "*.hi" | grep -v debian` \
`find . -name "*~" | grep -v debian` *.a setup dist testsrc/runtests \
local-pkg doctmp
Expand All @@ -20,14 +23,14 @@ test: test-ghc test-hugs

test-hugs:
@echo " ****** Running hugs tests"
runghc Setup.lhs configure -f buildtests --hugs --extra-include-dirs=/usr/lib/hugs/include
runghc Setup.lhs build
./setup configure -f buildtests --hugs --extra-include-dirs=/usr/lib/hugs/include
./setup build
runhugs -98 +o -P$(PWD)/dist/scratch:$(PWD)/dist/scratch/programs/runtests: \
dist/scratch/programs/runtests/Main.hs

test-ghc:
@echo " ****** Building GHC tests"
runghc Setup.lhs configure -f buildtests
runghc Setup.lhs build
./setup configure -f buildtests
./setup build
@echo " ****** Running GHC tests"
./dist/build/runtests/runtests
6 changes: 6 additions & 0 deletions Setup.hs
@@ -0,0 +1,6 @@
#!/usr/bin/env runhugs

import Distribution.Simple

main = defaultMain

6 changes: 0 additions & 6 deletions Setup.lhs

This file was deleted.

0 comments on commit 75c8a8c

Please sign in to comment.