X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=Makefile;h=aa702a9ad7bf5372cc1a86388b8ae1474781fd86;hp=55dba6bdf51aa89cb3af5596b553719341172b35;hb=4c6905ca4fbebeac3064b7897ae739f14da3ac84;hpb=1f4718a29c0c386bd93e10f88dce8b9bb2f171b5 diff --git a/Makefile b/Makefile index 55dba6b..aa702a9 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,13 @@ CFLAGS += -O3 -Wall -std=c99 .PHONY: all -all: scene +all: scene commit open scene: scene.c bitmap.c bitmap.h - gcc $(CFLAGS) -o scene scene.c bitmap.c $(LIBS) && git commit -a -m "makefile commit" && ./scene & + gcc $(CFLAGS) -o scene scene.c bitmap.c $(LIBS) + +commit: scene.c bitmap.c bitmap.h + git commit -a --allow-empty-message --message="" --untracked-files=no + +open: scene.c bitmap.c bitmap.h + (./scene &) && echo