diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-11-05 14:18:51 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-11-05 14:18:51 +0300 |
commit | 0d485cbdd68a68c08400cbec7666a5f6db73086b (patch) | |
tree | 6a7f0f3d3b22b0d818ec9e4621cc0ac4c437ec86 /Makefile.in | |
parent | 4db724fdd76e3a6cd0f5124ef86de976c495d666 (diff) | |
download | nasm-0d485cbdd68a68c08400cbec7666a5f6db73086b.tar.gz nasm-0d485cbdd68a68c08400cbec7666a5f6db73086b.tar.bz2 nasm-0d485cbdd68a68c08400cbec7666a5f6db73086b.zip |
make: Add tags and TAGS targets
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 1b07553..a9d6c76 100644 --- a/Makefile.in +++ b/Makefile.in @@ -36,6 +36,7 @@ MKDIR = mkdir RM = rm STRIP = strip +FIND = find # Binary suffixes O = @OBJEXT@ @@ -44,7 +45,7 @@ X = @EXEEXT@ .SUFFIXES: .c .i .s .$(O) .1 .man .PHONY: all doc rdf install clean distclean cleaner spotless install_rdf test -.PHONY: install_doc everything install_everything strip perlreq dist +.PHONY: install_doc everything install_everything strip perlreq dist tags TAGS .c.$(O): $(CC) -c $(ALL_CFLAGS) -o $@ $< @@ -187,6 +188,7 @@ clean: $(RM) -f lib/*.$(O) lib/*.s lib/*.i $(RM) -f output/*.$(O) output/*.s output/*.i $(RM) -f nasm$(X) ndisasm$(X) + $(RM) -f tags TAGS cd rdoff && $(MAKE) clean distclean: clean @@ -210,6 +212,14 @@ strip: rdf: cd rdoff && $(MAKE) +TAGS: + $(RM) -f TAGS + $(FIND) . -name '*.[hcS]' -print | xargs etags -a + +tags: + $(RM) -f tags + $(FIND) . -name '*.[hcS]' -print | xargs ctags -a + rdf_install install_rdf: cd rdoff && $(MAKE) install |