X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=utils%2Fhsc2hs%2FMakefile;h=29995d0480a3c7e377090d0b696a40e14b5b1770;hb=45202530612593a0ba7a6c559a38dc1ff26670a4;hp=c60705f81ec4d1d535f1b1578a094b60594efa61;hpb=fdf1cd0399158308769fcb2ab7e46e215a68d865;p=ghc-hetmet.git diff --git a/utils/hsc2hs/Makefile b/utils/hsc2hs/Makefile index c60705f..29995d0 100644 --- a/utils/hsc2hs/Makefile +++ b/utils/hsc2hs/Makefile @@ -48,7 +48,7 @@ $(INPLACE_HS): Makefile $(FPTOOLS_TOP)/mk/config.mk echo "main = do args <- getArgs; rawSystem \"$(TOP_ABS)/$(GHC_HSC2HS_DIR_REL)/$(HS_PROG)\" (\"--template=$(TOP_ABS)/$(GHC_HSC2HS_DIR_REL)/template-hsc.h\":\"--cc=$(CC)\":\"--ld=$(CC)\"$(patsubst %,:\"%\",$(extra_flags)):\"--cflag=-D__GLASGOW_HASKELL__=$(ProjectVersionInt)\":\"-I$(TOP_ABS)/$(GHC_INCLUDE_DIR_REL)\":\"-I$(TOP_ABS)/gmp/gmpbuild\":args) >>= exitWith" >> $@ $(INPLACE_PROG): $(INPLACE_HS) - $(GHC) --make $< -o $@ + $(HC) --make $< -o $@ all :: $(INPLACE_PROG) @@ -60,7 +60,7 @@ else INSTALL_LIBEXECS += $(HS_PROG) LINK = hsc2hs LINK_TARGET = $(LINK)-$(ProjectVersion) -INSTALLED_SCRIPT=$(bindir)/$(LINK_TARGET) +INSTALLED_SCRIPT=$(DESTDIR)$(bindir)/$(LINK_TARGET) install:: $(RM) -f $(INSTALLED_SCRIPT) echo "#!$(SHELL)" >> $(INSTALLED_SCRIPT)