aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 4459289b794f355ba154fee6b790b101768a4d0f (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
CFLAGS += -Weverything -std=c11 -g
CC = clang

SOURCES = src/twbctf.c src/sds.c
HEADERS = src/twbctf.h src/sds.h
MANPAGES = docs/sds.3 docs/sdsnew.3 docs/sdsfree.3

all: sds-test $(MANPAGES)


sds-test: $(SOURCES) $(HEADERS) src/test.c
	@echo "==> Building sds-test"
	$(CC) $(CFLAGS) -o $@ $(SOURCES)

docs/%.3: docs/%.rst
	@echo "==> Building manpages"
	sphinx-build -b man -E docs/ docs/


test: sds-test
	./sds-test


clean:
	rm -f sds-test
	rm docs/*.3


.PHONY: all test