diff options
author | John Ankarström <john@ankarstrom.se> | 2022-04-01 01:19:31 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-04-01 02:03:08 +0200 |
commit | d5b94e3704ab5d3e464101451a2d08a9c43d3ed6 (patch) | |
tree | e1537f2615c1bcd923e18c1d021bf7ca43f515e9 | |
parent | 481316f44fed66f2b3a425396bad4f931a8fc413 (diff) | |
download | EpisodeBrowser-d5b94e3704ab5d3e464101451a2d08a9c43d3ed6.tar.gz |
Add Prolog support to TAGS.
-rw-r--r-- | .dir-locals.el | 6 | ||||
-rw-r--r-- | Makefile | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/.dir-locals.el b/.dir-locals.el index 62e25f6..d9e0d06 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -1,2 +1,6 @@ ((c-mode . ((flycheck-gcc-include-path . ("C:/Program Files/swipl/include")) - (flycheck-gcc-definitions . ("UNICODE" "_UNICODE"))))) + (flycheck-gcc-definitions . ("UNICODE" "_UNICODE")))) + (nil . ((eval . (progn + (require 'project) + (setq-local tags-table-list + (list (concat (car (project-roots (project-current))) "TAGS")))))))) @@ -25,8 +25,8 @@ $(B)resource.obj: c/resource.h c/resource.rc $(B)%.obj: c/%.c c/defs.h $(CC) -c $(CFLAGS) -o $@ $< -TAGS: c/*.c c/*.h - etags $^ +TAGS: c/*.c c/*.h pl/*.pl + etags c/*.c c/*.h -lprolog pl/*.pl clean: rm -fr $(B)EpisodeBrowser.exe $(B)*.obj |