Makefile.in (TAGS_SOURCES): New variable.
authorTom Tromey <tromey@redhat.com>
Wed, 16 Apr 2008 21:10:37 +0000 (21:10 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 16 Apr 2008 21:10:37 +0000 (21:10 +0000)
* Makefile.in (TAGS_SOURCES): New variable.
(TAGS): New target.

From-SVN: r134367

libcpp/ChangeLog
libcpp/Makefile.in

index 02de9d0c5153fcbb45966a53b2075e3070d7e77b..0eb632f92f957324bbb21899eeccc4cc59f30f18 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-16  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in (TAGS_SOURCES): New variable.
+       (TAGS): New target.
+
 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        * configure.ac: (need_64bit_hwint): Need 64bit hwint for sh-*-*
index 4112c6633de0381778907b56191f7f7f8fa9338b..e4d6a485d1748e05cbfb2472d621c025411c1b87 100644 (file)
@@ -246,6 +246,12 @@ po/$(PACKAGE).pot: $(libcpp_a_SOURCES)
        sed 's:$(srcdir)/::g' <po/$(PACKAGE).pot.tmp >po/$(PACKAGE).pot
        rm po/$(PACKAGE).pot.tmp
 
+TAGS_SOURCES = $(libcpp_a_SOURCES) makedepend.c internal.h ucnid.h \
+    include/line-map.h include/symtab.h include/cpp-id-data.h \
+    include/cpplib.h include/mkdeps.h system.h
+
+TAGS: $(TAGS_SOURCES)
+       cd $(srcdir) && etags $(TAGS_SOURCES)
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.