From: sof Date: Tue, 25 Mar 1997 21:19:00 +0000 (+0000) Subject: [project @ 1997-03-25 21:19:00 by sof] X-Git-Tag: Approximately_1000_patches_recorded~712 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=fa0a51cc81fcbd9559384b0d60e2d2e66892f801;p=ghc-hetmet.git [project @ 1997-03-25 21:19:00 by sof] Bin dist install of hscpp --- diff --git a/ghc/utils/hscpp/Makefile b/ghc/utils/hscpp/Makefile index a783321..ba69ac6 100644 --- a/ghc/utils/hscpp/Makefile +++ b/ghc/utils/hscpp/Makefile @@ -6,6 +6,9 @@ SCRIPT_PROG=hscpp SCRIPT_OBJS=hscpp.prl SCRIPT_SUBST_VARS=RAWCPP +# Note: might be overridden from cmd-line (see install rule below) +INSTALLING=0 + # no INTERP: do *not* want #! script stuck on the front # what's the deal? I'll add it for now -- SOF INTERP=perl @@ -13,8 +16,29 @@ INTERP=perl # # install setup # -INSTALL_LIBEXECS += $(SCRIPT_PROG) +INSTALL_LIB_SCRIPTS+=$(SCRIPT_PROG) +INSTALL_LIBEXECS=$(C_PROG) + + +# +# Before really installing the script, we have to +# reconfigure it such that the paths it refers to, +# point to the installed utils. +# +install :: + @$(RM) $(SCRIPT_PROG) + @$(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG) + + CLEAN_FILES += $(SCRIPT_PROG) include $(TOP)/mk/target.mk + +# Hack to re-create the in-situ build tree script after +# having just installed it. +# +install :: + @$(RM) $(SCRIPT_PROG) + @$(MAKE) $(MFLAGS) BIN_DIST=0 $(SCRIPT_PROG) +