File conf/make/src.mk renamed from src/Makefile (similarity 99%) (mode: 100644) (index de670ea..da7fb82) |
6 |
6 |
# blunt approch is more portable and more easily understood by developers not |
# blunt approch is more portable and more easily understood by developers not |
7 |
7 |
# familiar with the `make` tool. |
# familiar with the `make` tool. |
8 |
8 |
|
|
9 |
|
LUAFILES += \ |
|
|
9 |
|
LUAFILES = \ |
10 |
10 |
${srcdir}src/Chorus.lua \ |
${srcdir}src/Chorus.lua \ |
11 |
11 |
${srcdir}src/ChorusTest.lua \ |
${srcdir}src/ChorusTest.lua \ |
12 |
12 |
${srcdir}src/local.lua \ |
${srcdir}src/local.lua \ |
|
... |
... |
${srcdir}src/ChorusPartyFrame.lua \ |
30 |
30 |
${srcdir}src/ChorusGroupFrame.lua \ |
${srcdir}src/ChorusGroupFrame.lua \ |
31 |
31 |
${srcdir}src/ChorusFrame.lua |
${srcdir}src/ChorusFrame.lua |
32 |
32 |
|
|
33 |
|
XMLFILES += \ |
|
|
33 |
|
XMLFILES = \ |
34 |
34 |
${srcdir}src/Chorus.xml \ |
${srcdir}src/Chorus.xml \ |
35 |
35 |
${srcdir}src/ChorusFont.xml \ |
${srcdir}src/ChorusFont.xml \ |
36 |
36 |
${srcdir}src/ChorusAuraButtonTemplate.xml \ |
${srcdir}src/ChorusAuraButtonTemplate.xml \ |
File makefile renamed from GNUmakefile (similarity 76%) (mode: 100644) (index cabd189..47a90eb) |
|
1 |
|
.POSIX: |
|
2 |
|
|
|
3 |
|
.PRAGMA: posix_202x |
|
4 |
|
|
1 |
5 |
# NAME must be in [a-z0-9] and must not contain special characters or |
# NAME must be in [a-z0-9] and must not contain special characters or |
2 |
6 |
# delimiters. Otherwise, the game client will quietly ignore the add-on and not |
# delimiters. Otherwise, the game client will quietly ignore the add-on and not |
3 |
7 |
# load it. |
# load it. |
4 |
8 |
NAME=chorus |
NAME=chorus |
5 |
|
VERSION=0.8.0 |
|
|
9 |
|
VERSION=0.8.0-16-g125835d |
6 |
10 |
|
|
7 |
11 |
srcdir=./ |
srcdir=./ |
8 |
12 |
|
|
|
... |
... |
LUA=lua |
15 |
19 |
LUAFLAGS= |
LUAFLAGS= |
16 |
20 |
|
|
17 |
21 |
LUACHECK=luacheck |
LUACHECK=luacheck |
18 |
|
LUACHECKFLAGS=--config ${srcdir}etc/luacheckrc.lua |
|
|
22 |
|
LUACHECKFLAGS=--config ${srcdir}conf/lua-check/luacheckrc.lua |
19 |
23 |
|
|
20 |
24 |
LDOC=ldoc |
LDOC=ldoc |
21 |
25 |
LDOCFLAGS= |
LDOCFLAGS= |
22 |
26 |
|
|
23 |
27 |
# WARNING: XML encoding is significant, it's "UTF-8" and __not__ "UTF8". |
# WARNING: XML encoding is significant, it's "UTF-8" and __not__ "UTF8". |
24 |
28 |
XMLLINT=xmllint |
XMLLINT=xmllint |
25 |
|
XMLLINTFLAGS=--nonet --encode UTF-8 --schema ${srcdir}share/FrameXML/UI.xsd |
|
|
29 |
|
XMLLINTFLAGS=--nonet --encode UTF-8 --schema ${srcdir}conf/FrameXML/UI.xsd |
26 |
30 |
|
|
27 |
31 |
INSTALL=unzip -d ${DESTDIR}Interface/AddOns |
INSTALL=unzip -d ${DESTDIR}Interface/AddOns |
28 |
32 |
|
|
29 |
33 |
LUAFILES= |
LUAFILES= |
30 |
34 |
XMLFILES= |
XMLFILES= |
31 |
35 |
|
|
32 |
|
# Use the source directory name as project name, if not yet set. |
|
33 |
|
NAME ?= ${shell basename ${realpath ${srcdir}}} |
|
34 |
|
|
|
35 |
|
# Use `git` to infer the project's current version, if not yet set. |
|
36 |
|
VERSION ?= ${shell ${GIT} ${GITFLAGS} describe} |
|
37 |
|
|
|
38 |
36 |
# Load the exact list of source snippets from a separate Makefile. |
# Load the exact list of source snippets from a separate Makefile. |
39 |
37 |
# The order in which files are passed to the command line is important. |
# The order in which files are passed to the command line is important. |
40 |
38 |
# File `src/Chorus.lua` must be loaded first by the tools. |
# File `src/Chorus.lua` must be loaded first by the tools. |
41 |
|
include ${srcdir}src/Makefile |
|
|
39 |
|
include ${srcdir}conf/make/src.mk |
42 |
40 |
|
|
43 |
41 |
# Generate XML templates for raid frames. |
# Generate XML templates for raid frames. |
44 |
|
include ${srcdir}ChorusRaidFrameGenerator.mk |
|
|
42 |
|
include ${srcdir}conf/make/ChorusRaidFrameGenerator.mk |
45 |
43 |
|
|
46 |
|
all: ${LUAFILES} ${XMLFILES} | check |
|
|
44 |
|
all: ${LUAFILES} ${XMLFILES} check |
47 |
45 |
|
|
48 |
|
dist: ${NAME}-${VERSION}.zip | check |
|
|
46 |
|
dist: ${NAME}-${VERSION}.zip check |
49 |
47 |
|
|
50 |
48 |
${NAME}-${VERSION}.zip: doc/html/index.html doc/html/ldoc.css |
${NAME}-${VERSION}.zip: doc/html/index.html doc/html/ldoc.css |
51 |
49 |
${GIT} ${GITFLAGS} archive --format=zip \ |
${GIT} ${GITFLAGS} archive --format=zip \ |
|
... |
... |
doc/html/index.html: ${LUAFILES} |
64 |
62 |
test -d doc/ || mkdir doc/ |
test -d doc/ || mkdir doc/ |
65 |
63 |
test -d doc/html/ || mkdir doc/html/ |
test -d doc/html/ || mkdir doc/html/ |
66 |
64 |
${LDOC} ${LDOCFLAGS} --dir=doc/html/ --all \ |
${LDOC} ${LDOCFLAGS} --dir=doc/html/ --all \ |
67 |
|
--config=${srcdir}etc/ldoc.lua \ |
|
|
65 |
|
--config=${srcdir}conf/lua-ldoc/ldoc.lua \ |
68 |
66 |
--merge -X \ |
--merge -X \ |
69 |
67 |
--project=${NAME} \ |
--project=${NAME} \ |
70 |
68 |
--title='${NAME}-${VERSION}' \ |
--title='${NAME}-${VERSION}' \ |
|
... |
... |
check-xml: ${XMLFILES} |
86 |
84 |
check-lua: ${LUAFILES} |
check-lua: ${LUAFILES} |
87 |
85 |
${LUACHECK} ${LUACHECKFLAGS} $^ |
${LUACHECK} ${LUACHECKFLAGS} $^ |
88 |
86 |
|
|
89 |
|
check: | check-lua check-xml |
|
|
87 |
|
check: check-lua check-xml |
90 |
88 |
|
|
91 |
89 |
clean: |
clean: |
92 |
90 |
rm -f doc/html/index.html |
rm -f doc/html/index.html |
93 |
91 |
rm -f doc/html/ldoc.css |
rm -f doc/html/ldoc.css |
|
92 |
|
|
|
93 |
|
.PHONY: clean check check-lua check-xml install |