aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-03-31 14:31:00 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-03-31 14:31:00 -0400
commit34e2924793f8271f4cc43b906750775cc96ce021 (patch)
treedc26a2bcafecb67ac1db340442d048be834e6d4f /src/Makefile
parentc46527cc32aef6fd332ea5e45757c0858b1cbb5d (diff)
downloadtextadept-34e2924793f8271f4cc43b906750775cc96ce021.tar.gz
textadept-34e2924793f8271f4cc43b906750775cc96ce021.zip
Updated Lua autocompletion and documentation.
Filepaths have a "_HOME" prefix that is expected to be filled in by consumers (e.g. the experimental ctags module).
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile
index 345fd494..23412890 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -265,6 +265,8 @@ clean: ; rm -f *.o ../textadept*
# Documentation.
+ta_home = $(shell dirname `pwd`)
+
doc: manual luadoc
manual: ../*.md ../doc/manual.md | ../doc/bombay
$| -d ../doc -t ../doc --title Textadept $^
@@ -272,13 +274,13 @@ manual: ../*.md ../doc/manual.md | ../doc/bombay
../doc/manual.html
sed -i -e "s/Textadept Manual/Textadept $(subst _, ,$(version)) Manual/;" \
../doc/manual.html
-luadoc: ../modules ../core ../lexers | ../modules/lua/lua.luadoc
- cd ../doc && luadoc -d . -t . --doclet markdowndoc $^/lexer.lua
+luadoc: ../modules ../core ../lexers/lexer.lua | ../modules/lua/lua.luadoc
+ cd ../doc && luadoc -d . -t . --doclet markdowndoc $^
sed -i -e "s/Textadept API/Textadept $(subst _, ,$(version)) API/;" \
../doc/api.html
- cd ../modules && luadoc -d lua --doclet lua/tadoc $^/lexer.lua
+ cd ../modules && luadoc -d lua --doclet lua/tadoc $^ --ta-home=$(ta_home)
cd ../modules/lua && mv tags ta_tags && mv api ta_api
- cd ../modules && luadoc -d lua --doclet lua/tadoc $|
+ cd ../modules && luadoc -d lua --doclet lua/tadoc $| --ta-home=$(ta_home)
# Releases.