Rework the build system a bit
[ghc-hetmet.git] / utils / runstdtest / Makefile
1 TOP=../..
2 include $(TOP)/mk/boilerplate.mk
3
4 PROG=runstdtest
5 CLEAN_FILES += $(PROG)
6 all::
7         $(RM) -f $(PROG)
8         echo '#!$(PERL)'                               >> $(PROG)
9         echo '$$RM             = "$(RM)";'             >> $(PROG)
10         echo '$$DEFAULT_TMPDIR = "$(DEFAULT_TMPDIR)";' >> $(PROG)
11         echo '$$CONTEXT_DIFF   = "$(CONTEXT_DIFF)";'   >> $(PROG)
12         cat $(PROG).prl                                >> $(PROG)
13         $(EXECUTABLE_FILE) $(PROG)
14
15 include $(TOP)/mk/target.mk