summary refs log tree commit diff
path: root/makefile
blob: c4b7ecf0e4e0c408476d3f37af0287de91d0f338 (plain) (blame)
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
DIST=	dist

.PHONY: all clean

all: $(DIST)/index.html $(DIST)/email.html $(DIST)/style.css $(DIST)/scheme.css

$(DIST):
	mkdir -p $(DIST)

$(DIST)/index.html: index.1 style.css $(DIST)
	cp index.1 $(DIST)/index.1
	mandoc -Thtml -Ostyle=style.css index.1 > $@

$(DIST)/email.html: email.7 style.css $(DIST)
	mandoc -Thtml -Ostyle=style.css email.7 > $@
	cp email.7 $(DIST)/email.7

$(DIST)/style.css: style.css $(DIST)
	cp style.css $@

$(DIST)/scheme.css: scheme.css $(DIST)
	cp scheme.css $@

clean:
	rm -rf $(DIST)