From: sof Date: Tue, 17 Feb 1998 20:15:15 +0000 (+0000) Subject: [project @ 1998-02-17 20:15:15 by sof] X-Git-Tag: Approx_2487_patches~954 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=3be164570e3112a7e4935942f08b84c291fa8753;p=ghc-hetmet.git [project @ 1998-02-17 20:15:15 by sof] - TAGS rule: be quiet if we fail to copy generated TAGS file from build to source tree. --- diff --git a/mk/target.mk b/mk/target.mk index ffb31fa..c8a2414 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -802,18 +802,18 @@ check:: $(TESTS) #------------------------------------------------------------ # Tags -.PHONY: TAGS +.PHONY: TAGS tags -TAGS:: $(SOURCES) +tags TAGS:: $(TAGS_HS_SRCS) $(TAGS_C_SRCS) @$(RM) TAGS @touch TAGS -ifneq "$(HS_SRCS)" "" +ifneq "$(TAGS_HS_SRCS)" "" $(HSTAGS) $(HSTAGS_OPTS) -- $(TAGS_HS_SRCS) endif -ifneq "$(C_SRCS)" "" +ifneq "$(TAGS_C_SRCS)" "" etags -a $(TAGS_C_SRCS) endif - @( DEREFFED=`ls -l Makefile | sed -e 's/.*-> \(.*\)/\1/g'` && $(RM) `dirname $$DEREFFED`/TAGS && $(CP) TAGS `dirname $$DEREFFED` ) || echo TAGS file generated, perhaps copy over to source tree? + @( DEREFFED=`ls -l Makefile | sed -e 's/.*-> \(.*\)/\1/g'` && $(RM) `dirname $$DEREFFED`/TAGS && $(CP) TAGS `dirname $$DEREFFED` ) 2>/dev/null || echo TAGS file generated, perhaps copy over to source tree? #------------------------------------------------------------ # Makefile debugging