History

Makefile: Add rules to create tags and TAGS.

Lee Duhem committed 11 years ago

Commit 73e8f6b1 parent 4ae462b1 file · +9 −2Browse files

Unified · Split

Makefile+9−2
@@ -346,7 +346,8 @@ export LIBTCC1 · 345 unmodified lines
346 $(MAKE) -C tests $@ 'PROGS_CROSS=$(PROGS_CROSS)'346 $(MAKE) -C tests $@ 'PROGS_CROSS=$(PROGS_CROSS)'
347 347
348clean:348clean:
349 rm -vf $(PROGS) tcc_p$(EXESUF) tcc.pod *~ *.o *.a *.so* *.out *.exe libtcc_test$(EXESUF)349 rm -vf $(PROGS) tcc_p$(EXESUF) tcc.pod *~ *.o *.a *.so* *.out *.log \
350 *.exe a.out tags TAGS libtcc_test$(EXESUF)
350 $(MAKE) -C tests $@351 $(MAKE) -C tests $@
351ifneq ($(LIBTCC1),)352ifneq ($(LIBTCC1),)
352 $(MAKE) -C lib $@353 $(MAKE) -C lib $@
@@ -359,6 +360,12 @@ config.mak: · 6 unmodified lines
359 @echo "Please run ./configure."360 @echo "Please run ./configure."
360 @exit 1361 @exit 1
361 362
363tags:
364 ctags $(top_srcdir)/*.[ch] $(top_srcdir)/include/*.h $(top_srcdir)/lib/*.[chS]
365
366TAGS:
367 ctags -e $(top_srcdir)/*.[ch] $(top_srcdir)/include/*.h $(top_srcdir)/lib/*.[chS]
368
362# create release tarball from *current* git branch (including tcc-doc.html369# create release tarball from *current* git branch (including tcc-doc.html
363# and converting two files to CRLF)370# and converting two files to CRLF)
364TCC-VERSION := tcc-$(shell cat $(top_srcdir)/VERSION)371TCC-VERSION := tcc-$(shell cat $(top_srcdir)/VERSION)
@@ -373,6 +380,6 @@ tar: tcc-doc.html · 8 unmodified lines
373 rm -rf $(TCC-VERSION)380 rm -rf $(TCC-VERSION)
374 git reset381 git reset
375 382
376.PHONY: all clean tar distclean install uninstall FORCE383.PHONY: all clean tar tags TAGS distclean install uninstall FORCE
377 384
378endif # ifeq ($(TOP),.)385endif # ifeq ($(TOP),.)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t