Unified · Split
| @@ -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 | ||
| 348 | clean: | 348 | clean: |
| 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 $@ |
| 351 | ifneq ($(LIBTCC1),) | 352 | ifneq ($(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 1 | 361 | @exit 1 |
| 361 | 362 | ||
| 363 | tags: | ||
| 364 | ctags $(top_srcdir)/*.[ch] $(top_srcdir)/include/*.h $(top_srcdir)/lib/*.[chS] | ||
| 365 | |||
| 366 | TAGS: | ||
| 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.html | 369 | # 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) |
| 364 | TCC-VERSION := tcc-$(shell cat $(top_srcdir)/VERSION) | 371 | TCC-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 reset | 381 | git reset |
| 375 | 382 | ||
| 376 | .PHONY: all clean tar distclean install uninstall FORCE | 383 | .PHONY: all clean tar tags TAGS distclean install uninstall FORCE |
| 377 | 384 | ||
| 378 | endif # ifeq ($(TOP),.) | 385 | endif # ifeq ($(TOP),.) |