summaryrefslogtreecommitdiff
path: root/driver/mangler/Makefile
blob: 1242d6c2366c0513d6fe615d7898c4096ac09a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#-----------------------------------------------------------------------------
# $Id: Makefile,v 1.3 2001/03/23 16:36:21 simonmar Exp $

TOP=../..
include $(TOP)/mk/boilerplate.mk

PROG = ghc-asm
all:: $(PROG).prl
	$(RM) -f $(PROG)
	echo '#!$(PERL)'                                >> $(PROG)
	echo '$$TARGETPLATFORM  = "$(TARGETPLATFORM)";' >> $(PROG)
	cat $<                                          >> $(PROG)
	$(EXECUTABLE_FILE) $(PROG)

INSTALL_LIBEXEC_SCRIPTS += $(PROG)
CLEAN_FILES += $(PROG) $(PROG).prl

# needed for bootstrapping with HC files
ifeq "$(BootingFromHc)" "YES"
boot :: all
endif

BINDIST_EXTRAS += $(PROG)
include $(TOP)/mk/bindist.mk

include $(TOP)/mk/target.mk