Add documentation build
This commit is contained in:
12
Makefile
12
Makefile
@@ -15,7 +15,7 @@ LIB = \
|
||||
$(LIBGLFW)
|
||||
|
||||
DOC = \
|
||||
DESIGN.pdf
|
||||
design.html
|
||||
|
||||
CFLAGS = \
|
||||
-I./ext/cglm/include \
|
||||
@@ -23,6 +23,7 @@ CFLAGS = \
|
||||
-Wall -Wno-unused-function -std=c89
|
||||
|
||||
all: $(BIN) $(LIB)
|
||||
doc: $(DOC)
|
||||
|
||||
$(BIN): $(OBJ) $(LIB)
|
||||
$(CC) -lGL -lglfw -L. -o $(BIN) $(OBJ)
|
||||
@@ -39,13 +40,10 @@ clean:
|
||||
clean-all:
|
||||
rm $(OBJ) $(DOC) $(LIB) $(BIN)
|
||||
|
||||
.SUFFIXES: .ms .pdf .html .c .o
|
||||
.SUFFIXES: .nr .html .html .c .o
|
||||
|
||||
.ms.pdf:
|
||||
cat $< | sed -e "s/^\s*//g" -e "/^$$/d" | tbl| groff -Tpdf -fC -ms > $@
|
||||
|
||||
.ms.html:
|
||||
cat $< | sed -e "s/^\s*//g" -e "/^$$/d"| tbl | groff -Thtml -fC -ms > $@
|
||||
.nr.html:
|
||||
cat $< | nulldoc > $@
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) $< -c -o $@
|
||||
|
||||
Reference in New Issue
Block a user