aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: ba95cf1044e812c14f1f08eba8b43392129e9512 (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
.POSIX:

all: public

public: style texidocs/carbslinux.texi texidocs/carbslinux.txt
	sed -e '3a#+ALIASES[]: /install.html' -e 1d texidocs/install.org > content/install.org
	hugo
	mkdir -p public/docs
	makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css -o public/docs/cpt cpt/docs/cpt.texi
	makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css --no-split -o public/docs/cpt.html cpt/docs/cpt.texi
	makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css -o public/docs/carbslinux texidocs/carbslinux.texi
	makeinfo --html --css-ref=https://www.gnu.org/software/gnulib/manual.css --no-split -o public/docs/carbslinux.html texidocs/carbslinux.texi
	cp texidocs/carbslinux.txt public/docs/carbslinux.txt
	cp texidocs/install.txt    public/install.txt
	cp cpt/docs/cpt.txt        public/docs/cpt.txt
	ln -sf blog/index.xml public/rss.xml
	ln -sf news/index.xml public/news.xml

style: style/carbslinux.min.css
	mkdir -p static
	cp style/carbslinux.css static/style.css

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

clean:
	rm -rf public
	rm -f  static/style.css

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