From 351e5d7296ed83e1b95a18138d1a3e5ee74660e0 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sun, 9 Jul 2023 22:18:20 -0400 Subject: [PATCH] doc: Add clean up, and git ignore the binary --- .gitignore | 1 + doc/Makefile | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 65a3136..e0495a0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ example/bin/* docs/xml docs/build docs/src +doc/doc* *.tmp *.swo *.swp diff --git a/doc/Makefile b/doc/Makefile index 72a598b..967bd8f 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -13,12 +13,14 @@ LIBS = else UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Darwin) - LIBS = + LIBS = else LIBS = endif endif -$(BIN): - rm -f $(BIN) $(OBJS) +$(BIN): clean $(CC) $(SRC) $(CFLAGS) -o $(BIN) + +clean: + rm -f $(BIN) $(OBJS)