summaryrefslogtreecommitdiff
path: root/testsuite/tests/plugins/annotation-plugin/Makefile
blob: 7ce5b78e7598ef29fc9aa3775a4e64b840057c31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

clean.%:
	rm -rf pkg.$*

HERE := $(abspath .)
$(eval $(call canonicalise,HERE))

package.%:
	$(MAKE) -s --no-print-directory clean.$*
	mkdir pkg.$*
	"$(TEST_HC)" -outputdir pkg.$* --make -v0 -o pkg.$*/setup Setup.hs
	"$(GHC_PKG)" init pkg.$*/local.package.conf
	pkg.$*/setup configure --distdir pkg.$*/dist -v0 $(CABAL_PLUGIN_BUILD) --prefix="$(HERE)/pkg.$*/install" --with-compiler="$(TEST_HC)" $(if $(findstring YES,$(HAVE_PROFILING)), --enable-library-profiling) --with-hc-pkg="$(GHC_PKG)" --package-db=pkg.$*/local.package.conf
	pkg.$*/setup build     --distdir pkg.$*/dist -v0
	pkg.$*/setup install   --distdir pkg.$*/dist -v0