[project @ 2004-08-27 08:29:04 by simonpj]
authorsimonpj <unknown>
Fri, 27 Aug 2004 08:29:04 +0000 (08:29 +0000)
committersimonpj <unknown>
Fri, 27 Aug 2004 08:29:04 +0000 (08:29 +0000)
Better tags generation, avoiding derived files (still a bit ad hoc)

ghc/compiler/Makefile

index 399757f..8d8e452 100644 (file)
@@ -582,6 +582,16 @@ MKDEPENDC_SRCS =
 parser/Parser.y : parser/Parser.y.pp
 EXTRA_SRCS += parser/Parser.y
 
+
+#-----------------------------------------------------------------------------
+#              Source files for tags file generation
+#
+# We want to excluded derived sources, because they won't be in the source
+# tree, which is where we are going to move the TAGS file to.a
+
+TAGS_HS_SRCS = parser/Parser.y.pp $(filter-out $(DERIVED_SRCS) main/Config.hs parser/Parser.y, $(sort $(SRCS)))
+
+
 include $(TOP)/mk/target.mk
 
 # -----------------------------------------------------------------------------