[project @ 2002-06-14 08:23:57 by simonpj]
authorsimonpj <unknown>
Fri, 14 Jun 2002 08:23:57 +0000 (08:23 +0000)
committersimonpj <unknown>
Fri, 14 Jun 2002 08:23:57 +0000 (08:23 +0000)
---------------------------------------
Add a target "count" which counts lines
       in user source files
---------------------------------------

ghc/compiler/Makefile

index dd65b1a..c4ce2a3 100644 (file)
@@ -1,5 +1,5 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.218 2002/05/29 22:39:39 sof Exp $
+# $Id: Makefile,v 1.219 2002/06/14 08:23:57 simonpj Exp $
 
 TOP = ..
 
@@ -11,6 +11,10 @@ endif
 
 include $(TOP)/mk/boilerplate.mk
 
+USER_SRCS = $(filter-out $(DERIVED_SRCS),$(SRCS))
+count :
+       ./count_lines $(USER_SRCS)
+
 #-----------------------------------------------------------------------------
 # Building ghc different ways (default is just `normal' sequential)
 WAYS=$(GhcCompilerWays)