aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-04-01 01:19:31 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-04-01 02:03:08 +0200
commitd5b94e3704ab5d3e464101451a2d08a9c43d3ed6 (patch)
treee1537f2615c1bcd923e18c1d021bf7ca43f515e9
parent481316f44fed66f2b3a425396bad4f931a8fc413 (diff)
downloadEpisodeBrowser-d5b94e3704ab5d3e464101451a2d08a9c43d3ed6.tar.gz
Add Prolog support to TAGS.
-rw-r--r--.dir-locals.el6
-rw-r--r--Makefile4
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"))))))))
diff --git a/Makefile b/Makefile
index 2b16b1f..9207143 100644
--- a/Makefile
+++ b/Makefile
@@ -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