-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
83 lines (74 loc) · 2.75 KB
/
Copy pathMakefile
File metadata and controls
83 lines (74 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.ONESHELL:
.PHONY: all
all: readme doc test cleanup
.PHONY: doc
doc:
$(MAKE) -C doc
cd doc || exit
xelatex quran-de-doc
xelatex quran-de-doc
.PHONY: test
test:
$(MAKE) -C sample quran-de-test.tex
cd sample || exit
xelatex quran-de-test
cd .. || exit
.PHONY: cleanup
cleanup:
$(MAKE) clean
$(MAKE) clean -C doc -f ../Makefile
$(MAKE) clean -C tex -f ../Makefile
$(MAKE) clean -C sample -f ../Makefile
.PHONY: clean
clean:
@rm -fv ./*.{aux,log,toc,idx,hd,out} ./*~
.PHONY: dev
dev:
cd tex || exit
sudo cp -v *.def quran-de.sty /usr/local/texlive/2025/texmf-dist/tex/xelatex/quran-de/
sudo mktexlsr
.PHONY: ctan
ctan:
$(MAKE) cleanup
mkdir -p quran-de/doc quran-de/tex
cp -v README quran-de
cd tex || exit
cp -v quran-de.sty ../quran-de/tex
cp -v qurantext-de*.translation.def ../quran-de/tex
cd ../doc/ || exit
cp -v quran-de-doc.pdf quran-de-doc.tex quran.png ../quran-de/doc
cd ../sample || exit
cp -v quran-de-test* ../quran-de/doc
cd ..
zip -r quran-de.zip quran-de
mv -fv quran-de.zip ..
rm -rfv ../quran-de
mv -fv quran-de ..
QURANDATE := $(shell grep "qurandedate{" tex/quran-de.sty | cut -d'{' -f2 | tr -d '}')
QURANVERSION := $(shell grep "qurandeversion{" tex/quran-de.sty | cut -d'{' -f2 | tr -d '}')
YEAR := "$(shell echo ${QURANDATE} | cut -d'/' -f1)"
readme-file := README
.PHONY: readme
readme:
@echo "_____________________" > "${readme-file}"
@echo "The quran-de package" >> "${readme-file}"
@echo "v${QURANVERSION}" >> "${readme-file}"
@echo "" >> "${readme-file}"
@echo "The package is prepared for typesetting some of German translations of the Holy Quran." >> "${readme-file}"
@echo -e "The supported translations are done by \`Abu Rida Muhammad ibn Ahmad ibn Rassoul\`," >> "${readme-file}"
@echo -e "\`A. S. F. Bubenheim and N. Elyas\`, \`Adel Theodor Khoury\`, and \`Amir Zaidan\`." >> "${readme-file}"
@echo "" >> "${readme-file}"
@echo "For more information, please see the documentation." >> "${readme-file}"
@echo "" >> "${readme-file}"
@echo "Current version release date: ${QURANDATE}" >> "${readme-file}"
@echo "___________________" >> "${readme-file}"
@echo "Seiied-Mohammad-Javad Razvian" >> "${readme-file}"
@echo "javadr@gmail.com" >> "${readme-file}"
@echo "" >> "${readme-file}"
@echo "Copyright © 2018-${YEAR}" >> "${readme-file}"
@echo "It may be distributed and/or modified under the LaTeX Project Public License," >> "${readme-file}"
@echo "version 1.3c or higher (your choice). The latest version of" >> "${readme-file}"
@echo "this license is at: http://www.latex-project.org/lppl.txt" >> "${readme-file}"
@echo "" >> "${readme-file}"
@echo "This work is “author-maintained” (as per LPPL maintenance status)" >> "${readme-file}"
@echo "by Seiied-Mohammad-Javad Razavian." >> "${readme-file}"