Makefile: Add rules to create tags and TAGS.
This commit is contained in:
11
Makefile
11
Makefile
@ -346,7 +346,8 @@ export LIBTCC1
|
|||||||
$(MAKE) -C tests $@ 'PROGS_CROSS=$(PROGS_CROSS)'
|
$(MAKE) -C tests $@ 'PROGS_CROSS=$(PROGS_CROSS)'
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -vf $(PROGS) tcc_p$(EXESUF) tcc.pod *~ *.o *.a *.so* *.out *.exe libtcc_test$(EXESUF)
|
rm -vf $(PROGS) tcc_p$(EXESUF) tcc.pod *~ *.o *.a *.so* *.out *.log \
|
||||||
|
*.exe a.out tags TAGS libtcc_test$(EXESUF)
|
||||||
$(MAKE) -C tests $@
|
$(MAKE) -C tests $@
|
||||||
ifneq ($(LIBTCC1),)
|
ifneq ($(LIBTCC1),)
|
||||||
$(MAKE) -C lib $@
|
$(MAKE) -C lib $@
|
||||||
@ -359,6 +360,12 @@ config.mak:
|
|||||||
@echo "Please run ./configure."
|
@echo "Please run ./configure."
|
||||||
@exit 1
|
@exit 1
|
||||||
|
|
||||||
|
tags:
|
||||||
|
ctags $(top_srcdir)/*.[ch] $(top_srcdir)/include/*.h $(top_srcdir)/lib/*.[chS]
|
||||||
|
|
||||||
|
TAGS:
|
||||||
|
ctags -e $(top_srcdir)/*.[ch] $(top_srcdir)/include/*.h $(top_srcdir)/lib/*.[chS]
|
||||||
|
|
||||||
# create release tarball from *current* git branch (including tcc-doc.html
|
# create release tarball from *current* git branch (including tcc-doc.html
|
||||||
# and converting two files to CRLF)
|
# and converting two files to CRLF)
|
||||||
TCC-VERSION := tcc-$(shell cat $(top_srcdir)/VERSION)
|
TCC-VERSION := tcc-$(shell cat $(top_srcdir)/VERSION)
|
||||||
@ -373,6 +380,6 @@ tar: tcc-doc.html
|
|||||||
rm -rf $(TCC-VERSION)
|
rm -rf $(TCC-VERSION)
|
||||||
git reset
|
git reset
|
||||||
|
|
||||||
.PHONY: all clean tar distclean install uninstall FORCE
|
.PHONY: all clean tar tags TAGS distclean install uninstall FORCE
|
||||||
|
|
||||||
endif # ifeq ($(TOP),.)
|
endif # ifeq ($(TOP),.)
|
||||||
|
|||||||
Reference in New Issue
Block a user