aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2023-01-24 16:22:15 +0100
committerRobert Alessi <alessi@robertalessi.net>2023-01-24 16:22:15 +0100
commitc63175dce7d49019a648701bfd06b6d7769cf51d (patch)
treeef544dac2bd5a021af64bacca2f2661dae57f155
parentc3c7d5945ff68e6b2e30768f06b9f09cf19263ef (diff)
downloadarabluatex-c63175dce7d49019a648701bfd06b6d7769cf51d.tar.gz
makefile: new rule for HAL
-rw-r--r--makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/makefile b/makefile
index bb09058..a0a6362 100644
--- a/makefile
+++ b/makefile
@@ -1,5 +1,5 @@
1pkg := arabluatex 1pkg := arabluatex
2ver := $(shell ltxfileinfo -v $(pkg).dtx|sed -e 's/^v//') 2VERS := $(shell ltxfileinfo -v $(pkg).dtx|sed -e 's/^v//')
3TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') 3TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME')
4HOMEDIR := $$HOME 4HOMEDIR := $$HOME
5CMP = lualatex-dev 5CMP = lualatex-dev
@@ -56,9 +56,12 @@ auctex: clean
56 56
57zip: all 57zip: all
58 ln -sf . $(pkg) 58 ln -sf . $(pkg)
59 zip -Drq $(PWD)/$(pkg)-$(ver).zip $(pkg)/{samples,README.md,$(pkg)*.{pdf,sty,lua,el}} 59 zip -Drq $(PWD)/$(pkg)-$(VERS).zip $(pkg)/{samples,README.md,$(pkg)*.{pdf,sty,lua,el}}
60 rm $(pkg) 60 rm $(pkg)
61 61
62hal: clean
63 zip -Drq $(PWD)/$(pkg)-$(VERS).zip *
64
62package: clean all 65package: clean all
63 mkdir -p arabluatex/samples/ 66 mkdir -p arabluatex/samples/
64 cp *.{lua,ins,dtx,md,pdf} makefile README.tex arabluatex/ # .bib is in dtx 67 cp *.{lua,ins,dtx,md,pdf} makefile README.tex arabluatex/ # .bib is in dtx
@@ -71,7 +74,7 @@ package: clean all
71 mkdir -p source/lualatex/arabluatex/ 74 mkdir -p source/lualatex/arabluatex/
72 cp *.{ins,dtx,tex,md} makefile source/lualatex/arabluatex/ # .bib is in dtx 75 cp *.{ins,dtx,tex,md} makefile source/lualatex/arabluatex/ # .bib is in dtx
73 zip -r arabluatex.tds.zip tex doc source 76 zip -r arabluatex.tds.zip tex doc source
74 tar czf arabluatex-$(ver).tar.gz arabluatex.tds.zip arabluatex/ 77 tar czf arabluatex-$(VERS).tar.gz arabluatex.tds.zip arabluatex/
75 78
76clean: 79clean:
77 rm -rf $(TEXMFDIR)/{tex,doc}/lualatex/arabluatex/ 80 rm -rf $(TEXMFDIR)/{tex,doc}/lualatex/arabluatex/