X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Ftarget.mk;h=cbd0308eed42fdb042b63cdda7f7eca3da619c66;hb=9a13d5c84f7467ea29fc7e50b7257585e9c1cee7;hp=44b9bf9165d678c6fc1562214f7241167e75116f;hpb=5f361eaeb061b15b3da4be268d77e9ead04b8b45;p=ghc-hetmet.git diff --git a/mk/target.mk b/mk/target.mk index 44b9bf9..cbd0308 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -876,13 +876,17 @@ SGML_TEXT = $(SGML_DOC).txt else # no SGML_DOC +ifeq "$(VSGML_SRCS)" "" VSGML_SRCS = $(wildcard *.vsgml) +endif +ifeq "$(SGML_SRCS)" "" ifneq "$(VSGML_SRCS)" "" SGML_SRCS = $(addsuffix .sgml, $(basename $(VSGML_SRCS))) else SGML_SRCS = $(wildcard *.sgml) endif +endif SGML_DVI = $(addsuffix .dvi, $(basename $(SGML_SRCS))) SGML_PS = $(addsuffix .ps, $(basename $(SGML_SRCS))) @@ -946,7 +950,7 @@ ifneq "$(HS_OBJS)" "" ifneq "$(filter -split-objs,$(HC_OPTS))" "" clean :: find $(patsubst %.$(way_)o,%,$(HS_OBJS)) -name '*.$(way_)o' -print | xargs $(RM) __rm_food - -rmdir $(patsubst %.$(way_)o,%,$(HS_OBJS)) + -rmdir $(patsubst %.$(way_)o,%,$(HS_OBJS)) > /dev/null 2>&1 endif endif