/makefile (ab8a84f46d10328f274a1c96c2123dddb9af4081) (2375 bytes) (mode 100644) (type blob)
.POSIX:
.PRAGMA: posix_202x
# NAME must be in [a-z]+[a-z0-9_]*. It must never contain special characters or
# delimiters. Otherwise, the game client will quietly ignore the add-on and not
# load it.
NAME=chorus
VERSION=0.14.2
srcdir=./
SHELL=/bin/sh
GIT=git
GITFLAGS=--git-dir=${srcdir}.git/
LUA=lua
LUAFLAGS=
LUACHECK=luacheck
LUACHECKFLAGS=--config ${srcdir}conf/lua-check/luacheckrc.lua
LDOC=ldoc
LDOCFLAGS=
# WARNING: XML encoding is significant, it's "UTF-8" and __not__ "UTF8".
XMLLINT=xmllint
XMLLINTFLAGS=--nonet --encode UTF-8 --schema ${srcdir}conf/FrameXML/UI.xsd
CTAGS=ctags
CTAGSFLAGS=
INSTALL=unzip -d ${DESTDIR}Interface/AddOns
LUAFILES=
XMLFILES=
# Load the exact list of source snippets from a separate Makefile.
# The order in which files are passed to the command line is important.
# File `src/Chorus.lua` must be loaded first by the tools.
include ${srcdir}conf/make/src.mk
all: ${LUAFILES} ${XMLFILES} check
dist: ${NAME}-${VERSION}.zip check
${NAME}-${VERSION}.zip: doc/html/index.html doc/html/ldoc.css
${GIT} ${GITFLAGS} archive --format=zip \
--prefix=${NAME}/doc/html/ \
--add-file=doc/html/index.html \
--add-file=doc/html/ldoc.css \
--prefix=${NAME}/ --output=$@ HEAD
html: doc/html/index.html
# WARNING: `ldoc` will only merge files correctly when they are under the same
# parent directory. There is a way to make it work, but the configuration file
# and working directory must be carefully set-up.
doc/html/index.html: ${LUAFILES}
test -d doc/ || mkdir doc/
test -d doc/html/ || mkdir doc/html/
${LDOC} ${LDOCFLAGS} --dir=doc/html/ --all \
--config=${srcdir}conf/lua-ldoc/ldoc.lua \
--merge -X \
--project=${NAME} \
--title='${NAME}-${VERSION}' \
--date=`${GIT} ${GITFLAGS} log --format=%as -n 1` \
${srcdir}src/
install: ${NAME}-${VERSION}.zip
${INSTALL} $^
# Read a list of XML files, exit with failure if any is invalid.
CHECK_XML=${XMLLINT} --noout ${XMLLINTFLAGS}
# Read a single XML file and print formatted XML to standard output.
FORMAT_XML = XMLLINT_INDENT=' ' ${XMLLINT} ${XMLLINTFLAGS} --format -
check-xml: ${XMLFILES}
${CHECK_XML} $^
check-lua: ${LUAFILES}
${LUACHECK} ${LUACHECKFLAGS} $^
check: check-lua check-xml
clean:
rm -f doc/html/index.html
rm -f doc/html/ldoc.css
tags:
${CTAGS} ${CTAGSFLAGS} -f $@ --recurse ${LUAFILES}
.PHONY: clean check check-lua check-xml install
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
45 |
398b9d097b3616886f9f979398ff001b7323a1bc |
.gitignore |
100644 |
blob |
2027 |
e180565584edd9379bf73d791d1f1dfdfebf8c37 |
README.adoc |
100644 |
blob |
270 |
c14e70ff4987c2b416f96c583b7506d1bf55df20 |
chorus.toc |
040000 |
tree |
- |
9c44cde6a0c42aed070065c7d46b6fc1d8b804f4 |
conf |
040000 |
tree |
- |
89ab032c40f591b382f3f168f67763c9ac561305 |
doc |
100644 |
blob |
2375 |
ab8a84f46d10328f274a1c96c2123dddb9af4081 |
makefile |
040000 |
tree |
- |
abaffe667752498253f7e7d62b056d76845f45f8 |
src |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/vrtc/chorus
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/vrtc/chorus
Clone this repository using git:
git clone git://git.rocketgit.com/user/vrtc/chorus
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main