summaryrefslogtreecommitdiff
path: root/driver/mangler/Makefile
blob: dfc7c396bade31fa1f22ead78b5a76a26cc2f841 (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
27
28
#-----------------------------------------------------------------------------
# $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

binary-dist:
	$(INSTALL_DIR)             $(BIN_DIST_DIR)/driver/mangler
	$(INSTALL_DATA)   Makefile $(BIN_DIST_DIR)/driver/mangler/
	$(INSTALL_SCRIPT) $(PROG)  $(BIN_DIST_DIR)/driver/mangler/

include $(TOP)/mk/target.mk