Add documentation build

This commit is contained in:
PedroEdiaz
2024-09-16 23:50:50 +06:00
parent 15dc499cd9
commit 25e08fc406
2 changed files with 170 additions and 130 deletions

View File

@@ -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 $@