diff options
Diffstat (limited to 'testsuite/tests/driver/recomp007/Makefile')
-rw-r--r-- | testsuite/tests/driver/recomp007/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/tests/driver/recomp007/Makefile b/testsuite/tests/driver/recomp007/Makefile new file mode 100644 index 0000000000..94d46e8242 --- /dev/null +++ b/testsuite/tests/driver/recomp007/Makefile @@ -0,0 +1,28 @@ +TOP=../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk + +LOCAL_PKGCONF=local.package.conf + +clean: + rm -f Setup$(exeext) + rm -rf a1/dist a2/dist b/dist + rm -f *.o *.hi + rm -f clean.out prep.out + rm -rf $(LOCAL_PKGCONF) + +recomp007: + $(MAKE) clean + "$(GHC_PKG)" init $(LOCAL_PKGCONF) + "$(TEST_HC)" -v0 --make Setup.hs + $(MAKE) prep.a1 + $(MAKE) prep.b + "$(GHC_PKG)" unregister --package-conf=$(LOCAL_PKGCONF) a-1.0 + $(MAKE) prep.a2 + cd b && ../Setup configure -v0 --with-compiler="$(TEST_HC)" --with-hc-pkg="$(GHC_PKG)" --package-db=../$(LOCAL_PKGCONF) + cd b && ../Setup build + +prep.%: + cd $* && ../Setup configure -v0 --with-compiler="$(TEST_HC)" --with-hc-pkg="$(GHC_PKG)" --package-db=../$(LOCAL_PKGCONF) + cd $* && ../Setup build -v0 + cd $* && ../Setup register -v0 --inplace |