aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 3552b5dc5ccd05f8f09d538bc436410b6ad30c23 (plain)
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
EMACS = emacs

all: docs style
	${EMACS} --batch --script ./org-publish.el

docs: texidocs/carbslinux.texi texidocs/carbslinux.txt
	mkdir -p docs/docs
	makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css -o docs/docs/cpt cpt/docs/cpt.texi
	makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css --no-split -o docs/docs/cpt.html cpt/docs/cpt.texi
	makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css -o docs/docs/carbslinux texidocs/carbslinux.texi
	makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css --no-split -o docs/docs/carbslinux.html texidocs/carbslinux.texi
	cp texidocs/carbslinux.txt docs/docs/carbslinux.txt
	cp cpt/docs/cpt.txt docs/docs/cpt.txt

style: style/carbslinux.css
	mkdir -p docs
	cp style/carbslinux.css docs/style.css

update-submodules:
	git submodule update --remote --init --recursive -f

publish:
	${EMACS} --batch --script ./org-publish.el

rebuild:
	rm -rf .cache/var/timestamps
	${MAKE} all

clean:
	rm -rf ./docs ./.cache/var/timestamps

.PHONY: all docs style update-submodules publish rebuild clean