Makefile 850 Bytes
Newer Older
1
2
3
4
5
TOP=../../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

clean:
Simon Marlow's avatar
Simon Marlow committed
6
	rm -rf setup a.out dist/build/testA
7
8
9
10
11
	rm -rf ,tmp dist ,tmp2
	find . -name "*.o" |xargs rm -f
	find . -name "*.hi" |xargs rm -f
	rm -fr install-tmp
	rm -fr install
Ian Lynagh's avatar
Ian Lynagh committed
12
	rm -f .setup-config .installed-pkg-config
13
14
15
16
17
18

setup : Setup.lhs
	$(TEST_HC) --make -o setup Setup.lhs

cabal01: setup
#	unregister if pakage 'test' already exists
19
20
	if $(GHC_PKG_INPLACE) --user list | grep test-; then \
	  $(GHC_PKG_INPLACE) --user unregister test; \
21
22
	fi

23
	./setup configure -v0 --prefix=`pwd`/install --with-compiler=$(TEST_HC) --with-hc-pkg=$(GHC_PKG_INPLACE) $(PROF)
24
25
	./setup build -v0
	./setup copy -v0 --copy-prefix=`pwd`/install-tmp
26
27
	ls install-tmp
#	install w/ register!
28
	./setup install --user -v0
29
	ls install
30
	./setup sdist -v0
31
	ls dist
32
	$(GHC_PKG_INPLACE) unregister --user test