Sfoglia il codice sorgente

doc: Add clean up, and git ignore the binary

Rob Loach 2 anni fa
parent
commit
351e5d7296
2 ha cambiato i file con 6 aggiunte e 3 eliminazioni
  1. 1 0
      .gitignore
  2. 5 3
      doc/Makefile

+ 1 - 0
.gitignore

@@ -5,6 +5,7 @@ example/bin/*
 docs/xml
 docs/build
 docs/src
+doc/doc*
 *.tmp
 *.swo
 *.swp

+ 5 - 3
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)