1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.6 2001/10/23 16:32:30 rrt Exp $
6 include $(TOP)/mk/boilerplate.mk
8 # -----------------------------------------------------------------------------
11 ifneq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
13 LINK_TARGET = $(LINK)-$(ProjectVersion)
14 INSTALLED_SCRIPT=$(DESTDIR)$(bindir)/$(LINK_TARGET)
16 $(RM) -f $(INSTALLED_SCRIPT)
17 echo "#!$(SHELL)" >> $(INSTALLED_SCRIPT)
18 echo "GHCBIN=$(libexecdir)/ghc-$(ProjectVersion)" >> $(INSTALLED_SCRIPT)
19 echo "TOPDIROPT=-B$(libdir)" >> $(INSTALLED_SCRIPT)
20 echo 'exec $$GHCBIN $$TOPDIROPT $${1+"$$@"}' >> $(INSTALLED_SCRIPT)
21 $(EXECUTABLE_FILE) $(INSTALLED_SCRIPT)
24 # -----------------------------------------------------------------------------
27 $(INSTALL_DIR) $(BIN_DIST_DIR)/driver/ghc
28 $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/driver/ghc/
30 include $(TOP)/mk/target.mk