summaryrefslogtreecommitdiff
path: root/driver/split/Makefile
blob: cc789203c95d7ac006de0df29f57ce582248c9da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#-----------------------------------------------------------------------------
# $Id: Makefile,v 1.2 2000/11/03 16:54:52 simonmar Exp $

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

PROG = ghc-split
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

binary-dist:
	$(INSTALL_DIR)              $(BIN_DIST_DIR)/driver/split
	$(INSTALL_DATA)    Makefile $(BIN_DIST_DIR)/driver/split/
	$(INSTALL_PROGRAM) $(PROG)  $(BIN_DIST_DIR)/driver/split/

include $(TOP)/mk/target.mk