diff options
author | Robert Alessi <alessi@robertalessi.net> | 2019-07-24 19:43:51 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2019-07-24 19:43:51 +0200 |
commit | 724790d0317fdd5698e7fd8125e188903c90a9cc (patch) | |
tree | e0624a7fc99e3bbc48f8f700e85426fcc901afcf /makefile | |
parent | 52024ce627a68d77247edf58778801acaed3611e (diff) | |
download | arabluatex-724790d0317fdd5698e7fd8125e188903c90a9cc.tar.gz |
new variable in makefile
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,5 @@ | |||
1 | pkg=arabluatex | 1 | pkg := arabluatex |
2 | ver := $(shell ltxfileinfo -v $(pkg).dtx|sed -e 's/^v//') | ||
2 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') | 3 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') |
3 | HOMEDIR := $$HOME | 4 | HOMEDIR := $$HOME |
4 | 5 | ||
@@ -48,7 +49,7 @@ package: clean all | |||
48 | mkdir -p source/lualatex/arabluatex/ | 49 | mkdir -p source/lualatex/arabluatex/ |
49 | cp *.ins *.dtx *.tex source/lualatex/arabluatex/ # .bib is in dtx | 50 | cp *.ins *.dtx *.tex source/lualatex/arabluatex/ # .bib is in dtx |
50 | zip -r arabluatex.tds.zip tex doc source | 51 | zip -r arabluatex.tds.zip tex doc source |
51 | tar czf arabluatex.tar.gz arabluatex.tds.zip arabluatex/ | 52 | tar czf arabluatex-$(ver).tar.gz arabluatex.tds.zip arabluatex/ |
52 | 53 | ||
53 | clean: | 54 | clean: |
54 | rm -rf $(TEXMFDIR)/tex/lualatex/arabluatex/ | 55 | rm -rf $(TEXMFDIR)/tex/lualatex/arabluatex/ |