summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2021-11-21 19:22:32 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2021-11-21 20:25:58 +0100
commit6569665a3ec236411285294b0c0a0d03d81b9020 (patch)
tree25402b2fdf3e3c47ce5d784e9654512048798ed9 /Makefile
parent814b93d12bc9a0792b150527495ece0847a343fc (diff)
downloadtransliterator-6569665a3ec236411285294b0c0a0d03d81b9020.tar.gz
add makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9bd1eb8
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,53 @@
+module = transliterator
+zipball = t-transliterator.zip
+doc-pdf = transliterator.pdf
+license = COPYING
+doc-src = doc/transliterator.tex
+interface-src = src/t-transliterator.xml
+mod-src = src/transliterator.lua
+mod-src += src/trans_tables_bg.lua
+mod-src += src/trans_tables_glag.lua
+mod-src += src/trans_tables_gr.lua
+mod-src += src/trans_tables_iso9.lua
+mod-src += src/trans_tables_scntfc.lua
+mod-src += src/trans_tables_sr.lua
+mod-src += src/trans_tables_trsc.lua
+mod-src += src/t-transliterator.mkii
+mod-src += src/t-transliterator.mkiv
+mod-src += src/t-transliterator.tex
+script-src = scripts/mtx-t-transliterate.lua
+src = $(license) $(doc-src) $(mod-src) $(script-src)
+texmf-doc = doc/context/third/transliterator
+texmf-scripts = scripts/context/lua/third/transliterator
+texmf-interface = tex/context/interface/third
+texmf-tex = tex/context/third/transliterator
+
+# zip for upload on modules.contextgarden.net
+texmf-zip: build/$(zipball)
+
+doc: build/$(doc-pdf)
+
+build/$(doc-pdf): $(doc-src)
+ mkdir -p -- build
+ ( pushd build && context ../$(doc-src); )
+
+build/$(zipball): $(src) doc
+ mkdir -p -- build/texmf/$(texmf-doc)
+ mkdir -p -- build/texmf/$(texmf-scripts)
+ mkdir -p -- build/texmf/$(texmf-interface)
+ mkdir -p -- build/texmf/$(texmf-tex)
+ cp -f -- build/$(doc-pdf) build/texmf/$(texmf-doc)/
+ cp -f -- $(doc-src) build/texmf/$(texmf-doc)/
+ cp -f -- $(doc-src) build/texmf/$(texmf-doc)/
+ cp -f -- $(script-src) build/texmf/$(texmf-scripts)/
+ cp -f -- $(interface-src) build/texmf/$(texmf-interface)/
+ cp -f -- $(mod-src) build/texmf/$(texmf-tex)/
+ # some dancing around needed to avoid including the build prefix
+ ( pushd build/texmf && zip -r $(zipball) doc scripts tex; )
+ mv -f build/texmf/$(zipball) build
+
+clean:
+ rm -rf -- build
+
+.PHONY: clean
+