Makefile

changeset 69
ff56b28e2cdd
parent 67
5da2cb5aea6b
child 72
b533da8e7411
--- a/Makefile	Mon Apr 24 21:02:00 2023 +0200
+++ b/Makefile	Sun Jun 11 14:05:28 2023 +0200
@@ -37,9 +37,9 @@
 
 OBJ = $(SRC:%.c=build/%$(OBJ_EXT))
 
-all: build build/$(BIN)
+all: build build/c2html
 	
-build/$(BIN): $(OBJ)
+build/c2html: $(OBJ)
 	$(LD) -o $@ $^ $(LDFLAGS)
 	
 build/%$(OBJ_EXT): src/%.c
@@ -49,19 +49,7 @@
 	$(MKDIR) $@
 	
 test: all
-	./build/$(BIN) test/ctest.c -o build/ctest.html \
-	-H test/header.html -F test/footer.html
-	./build/$(BIN) -j test/javatest.java -o build/javatest.html \
-	-H test/jheader.html -F test/footer.html
-	./build/$(BIN) test/bigtest.c -o build/bigtest.html \
-	-H test/header.html -F test/footer.html
-	./build/$(BIN) -p test/plain.txt -o build/plain.html \
-	-H test/header.html -F test/footer.html
-	diff build/ctest.html test/gs/ctest.html && \
-	diff build/javatest.html test/gs/javatest.html && \
-	diff build/bigtest.html test/gs/bigtest.html && \
-	diff build/plain.html test/gs/plain.html
-	@echo "Tests successful."
+	cd test && $(MAKE)
 	
 clean:
 	$(RM) $(RMFLAGS) build

mercurial