X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Ftarget.mk;h=109dbfcedb00b606d0072a2e30621b7f5e31a936;hb=855110881a6ea96cdb43388d5171bd1a24b7cf3e;hp=911c21d8b0ea4e373cabd3a3df287443bcd7b4e1;hpb=29834dd54830def5b7523830d0fe0cee2f14f144;p=ghc-hetmet.git diff --git a/mk/target.mk b/mk/target.mk index 911c21d..109dbfc 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -324,7 +324,7 @@ HC_SPLIT_PRE = \ $(RM) $@; if [ ! -d $(basename $@)_split ]; then mkdir $(basename $@)_split; else \ $(FIND) $(basename $@)_split -name '*.$(way_)o' -print | xargs $(RM) __rm_food; fi ifeq "$(GhcWithInterpreter)" "YES" -HC_SPLIT_POST = (cd $(dir $@) && $(LD) -r $(LD_X) -o $(notdir $@) $(basename $(notdir $@))_split/*.$(way_)o) +HC_SPLIT_POST = (cd $(basename $@)_split && $(LD) -r $(LD_X) -o ../$(notdir $@) *.$(way_)o) else HC_SPLIT_POST = touch $@ endif # GhcWithInterpreter == YES @@ -795,12 +795,14 @@ install:: $(INSTALL_INCLUDES) endif ifneq "$(INSTALL_DOCS)" "" +ifneq "$(SGMLDocWays)" "" install-docs:: $(INSTALL_DOCS) @$(INSTALL_DIR) $(datadir) for i in $(INSTALL_DOCS); do \ $(INSTALL_DATA) $(INSTALL_OPTS) $$i $(datadir); \ done endif +endif ifneq "$(INSTALL_SGML_DOC)" "" ifneq "$(SGMLDocWays)" ""