-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile.am
96 lines (83 loc) · 4.63 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = dit
LUA_FLAGS=-DLUA_COMPAT_5_1 -DLUA_USE_LINUX
my_dit_C_sources = dit.c Buffer.c CRT.c Clipboard.c DebugMemory.c Field.c \
FileReader.c FunctionBar.c Hashtable.c Highlight.c Line.c List.c Object.c \
Panel.c PatternMatcher.c Pool.c RichString.c Script.c \
Stack.c String.c StringBuffer.c TabManager.c Undo.c Vector.c Files.c Display.c \
Text.c lua-compat-5.3/compat-5.3.c libeditorconfig.a \
Prototypes.h Structures.h
# find bindings terminals highlight scripts -type f -or -type l | tr '\n' ' ' | fold -s -w 70 | sed 's,$,\\,'
nobase_dist_pkgdata_DATA = \
bindings/default terminals/xterm-1002 terminals/konsole \
terminals/rxvt terminals/xterm-color terminals/wsvt25 terminals/linux \
highlight/t.dithl highlight/perl.dithl highlight/lua.dithl \
highlight/dithl.dithl highlight/ltp.dithl highlight/rust.dithl \
highlight/javascript.dithlinc highlight/javascript.dithl \
highlight/java.dithl highlight/make.dithl highlight/lhs.dithl \
highlight/html.dithlinc highlight/gitconflict.dithlinc \
highlight/haskell.dithlinc highlight/haskell.dithl \
highlight/nestedm4.dithlinc highlight/ldoc.dithlinc \
highlight/shellbacktick.dithlinc highlight/lex.dithl \
highlight/css.dithlinc highlight/ruby.dithl highlight/shell.dithlinc \
highlight/diff.dithl highlight/lua.dithlinc \
highlight/yats.dithl highlight/c.dithl highlight/css.dithl \
highlight/markdown.dithl highlight/moonscript.dithl \
highlight/yaml.dithl highlight/markdown.dithlinc \
highlight/diff.dithlinc highlight/shell.dithl highlight/html.dithl \
highlight/gitcommit.dithl highlight/c.dithlinc highlight/latex.dithl \
highlight/json.dithl highlight/python.dithl highlight/latex.dithlinc \
highlight/xml.dithl highlight/teal.dithl highlight/conf.dithl \
highlight/lp.dithl highlight/etlua.dithl highlight/lpeg_re.dithlinc \
highlight/php.dithl highlight/yacc.dithl \
highlight/go.dithl highlight/autoconf.dithl scripts/c.lua \
scripts/compat53/module.lua scripts/compat53/init.lua \
scripts/java.lua scripts/teal.lua scripts/haskell.lua scripts/cmd.lua \
scripts/shell.lua scripts/latex.lua scripts/dit/code.lua \
scripts/dit/line_commit.lua scripts/dit/tab_complete.lua \
scripts/dit/lua/mobdebug.lua scripts/dit/global.lua scripts/go.lua \
scripts/lua.lua scripts/cscope.lua scripts/json.lua \
scripts/compat53.lua scripts/luacheck/inline_options.lua \
scripts/luacheck/fs.lua scripts/luacheck/config.lua \
scripts/luacheck/standards.lua scripts/luacheck/detect_globals.lua \
scripts/luacheck/reachability.lua \
scripts/luacheck/builtin_standards.lua scripts/luacheck/lexer.lua \
scripts/luacheck/whitespace.lua scripts/luacheck/multithreading.lua \
scripts/luacheck/check.lua scripts/luacheck/main.lua \
scripts/luacheck/init.lua scripts/luacheck/globbing.lua \
scripts/luacheck/core_utils.lua scripts/luacheck/linearize.lua \
scripts/luacheck/argparse.lua scripts/luacheck/stds.lua \
scripts/luacheck/utils.lua scripts/luacheck/filter.lua \
scripts/luacheck/expand_rockspec.lua scripts/luacheck/version.lua \
scripts/luacheck/format.lua scripts/luacheck/parser.lua \
scripts/luacheck/analyze.lua scripts/luacheck/cache.lua \
scripts/luacheck/options.lua scripts/tmux.lua
EXTRA_DIST = tools/GenHeaders extras/dit.keytab \
lua-$(DIT_LUA_VERSION)/src/*.[ch] \
lua-$(DIT_LUA_VERSION)/src/Makefile \
lua-$(DIT_LUA_VERSION)/README \
editorconfig/LICENSE \
doc/* \
docs/* \
lua-compat-5.3/compat-5.3.[ch]
dit_SOURCES = $(my_dit_C_sources) config.h debug.h md5.c md5.h
dit_CFLAGS = -std=c99 -DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" $(LUA_INCLUDE) -rdynamic -Ieditorconfig/include
dit_LDADD = $(LUA_LIB) libeditorconfig.a
dit_DEPENDENCIES = $(LUA_DEP) libeditorconfig.a
lua-$(DIT_LUA_VERSION)/src/liblua.a:
cd lua-$(DIT_LUA_VERSION)/src && make CC="$(CC)" MYCFLAGS="$(LUA_FLAGS)" MYLIBS="-Wl,-E -ldl" liblua.a
noinst_LIBRARIES = libeditorconfig.a
libeditorconfig_a_CFLAGS = -Ieditorconfig/include
libeditorconfig_a_SOURCES = editorconfig/src/config.h editorconfig/src/ec_fnmatch.c editorconfig/src/ec_fnmatch.h \
editorconfig/include/editorconfig/editorconfig.h editorconfig/include/editorconfig/editorconfig_handle.h \
editorconfig/src/editorconfig.c editorconfig/src/editorconfig.h editorconfig/src/editorconfig_handle.c \
editorconfig/src/editorconfig_handle.h editorconfig/src/global.h editorconfig/src/ini.c editorconfig/src/ini.h \
editorconfig/src/misc.c editorconfig/src/misc.h
clean-local:
rm -f order.txt
cd lua-$(DIT_LUA_VERSION)/src && make clean
install-data-local:
$(mkinstalldirs) "$(DESTDIR)$(datadir)/apps/konsole/"
$(INSTALL_DATA) "$(srcdir)/extras/dit.keytab" "$(DESTDIR)$(datadir)/apps/konsole/dit.keytab"
debug:
$(MAKE) CFLAGS="-g -O0 $(LUA_FLAGS)"