Commits

Ragnara  committed 45b2553

Make with default target counts
Make release does not count

  • Participants
  • Parent commits 090d687

Comments (0)

Files changed (2)

 CCWIN=i486-mingw32-gcc
 CFLAGS=-std=c11 -g -Wall -Wextra -Werror -pedantic
 
-all: buildcounter.exe buildcounter
+counted: release count
+
+
+release: buildcounter.exe buildcounter
 
 
 buildcounter: buildcounter.c
 	$(CC) $(CFLAGS) -o buildcounter buildcounter.c
-	@buildcounter -s buildno.h || echo "No buildcounting"
 
 buildcounter.exe: buildcounter.c
 	$(CCWIN) $(CFLAGS) -o buildcounter.exe buildcounter.c	
 
+count:
+	@buildcounter -s buildno.h || echo "No buildcounting"
+
 clean:
 	-rm buildcounter.exe
 	-rm buildcounter
 
+
+.PHONY: count clean
+
+
-#define BUILDNO 19
+#define BUILDNO 22