diff options
author | Robert Alessi <alessi@robertalessi.net> | 2023-01-24 16:22:15 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2023-01-24 16:22:15 +0100 |
commit | c63175dce7d49019a648701bfd06b6d7769cf51d (patch) | |
tree | ef544dac2bd5a021af64bacca2f2661dae57f155 /makefile | |
parent | c3c7d5945ff68e6b2e30768f06b9f09cf19263ef (diff) | |
download | arabluatex-c63175dce7d49019a648701bfd06b6d7769cf51d.tar.gz |
makefile: new rule for HAL
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | pkg := arabluatex | 1 | pkg := arabluatex |
2 | ver := $(shell ltxfileinfo -v $(pkg).dtx|sed -e 's/^v//') | 2 | VERS := $(shell ltxfileinfo -v $(pkg).dtx|sed -e 's/^v//') |
3 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') | 3 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') |
4 | HOMEDIR := $$HOME | 4 | HOMEDIR := $$HOME |
5 | CMP = lualatex-dev | 5 | CMP = lualatex-dev |
@@ -56,9 +56,12 @@ auctex: clean | |||
56 | 56 | ||
57 | zip: all | 57 | zip: 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 | ||
62 | hal: clean | ||
63 | zip -Drq $(PWD)/$(pkg)-$(VERS).zip * | ||
64 | |||
62 | package: clean all | 65 | package: 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 | ||
76 | clean: | 79 | clean: |
77 | rm -rf $(TEXMFDIR)/{tex,doc}/lualatex/arabluatex/ | 80 | rm -rf $(TEXMFDIR)/{tex,doc}/lualatex/arabluatex/ |