Rework the build system a bit
[ghc-hetmet.git] / driver / mangler / Makefile
1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.3 2001/03/23 16:36:21 simonmar Exp $
3
4 TOP=../..
5 include $(TOP)/mk/boilerplate.mk
6
7 PROG = ghc-asm
8 all:: $(PROG).prl
9         $(RM) -f $(PROG)
10         echo '#!$(PERL)'                                >> $(PROG)
11         echo '$$TARGETPLATFORM  = "$(TARGETPLATFORM)";' >> $(PROG)
12         cat $<                                          >> $(PROG)
13         $(EXECUTABLE_FILE) $(PROG)
14
15 INSTALL_LIBEXEC_SCRIPTS += $(PROG)
16 CLEAN_FILES += $(PROG) $(PROG).prl
17
18 # needed for bootstrapping with HC files
19 ifeq "$(BootingFromHc)" "YES"
20 boot :: all
21 endif
22
23 include $(TOP)/mk/target.mk