]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
modula2: Add m2.etags rule to gcc/m2/Make-lang.in
authorGaius Mulley <gaiusmod2@gmail.com>
Sun, 15 Oct 2023 13:01:51 +0000 (14:01 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Sun, 15 Oct 2023 13:01:51 +0000 (14:01 +0100)
This patch adds the m2.etags rule to gcc/m2/Make-lang.in which
generates etags for the .cc .c .h files within gcc/m2.

gcc/m2/ChangeLog:

* Make-lang.in (m2.tags): New rule.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/Make-lang.in

index a54151821efef3de53aec523b8a27479620bd019..61ad1646701f622b635c4c4d9fd53259f638ded2 100644 (file)
@@ -62,6 +62,12 @@ m2 modula-2 modula2: gm2$(exeext) xgcc$(exeext) cc1gm2$(exeext) \
                  $(GCC_PASSES) $(GCC_PARTS)
 m2.serial = cc1gm2$(exeext)
 
+m2.tags: force
+       cd $(srcdir)/m2; $(ETAGS) -o TAGS.sub \
+        *.cc *.h gm2-gcc/*.cc gm2-gcc/*.h \
+        gm2-libs-ch/*.h gm2-libs-ch/*.c gm2-libs-ch/*.cc; \
+       $(ETAGS) --include TAGS.sub --include ../TAGS.sub
+
 m2.srcinfo: doc/m2.info
        -cp -p $^ $(srcdir)/doc