From 502d7745f06ed682c18c1a33571ed30b038b42d3 Mon Sep 17 00:00:00 2001 From: Eric Saxby Date: Thu, 29 Nov 2012 15:57:12 -0800 Subject: [PATCH] make clean on :all --- Guardfile | 1 + Makefile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Guardfile b/Guardfile index 3ae71c5..bef33c3 100644 --- a/Guardfile +++ b/Guardfile @@ -6,4 +6,5 @@ # guard 'shell' do watch(/(.*).c/) {|m| `make` } + watch(/Makefile/) {|m| `make` } end diff --git a/Makefile b/Makefile index 812137c..d4acef2 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ CC=cc CFLAGS=-Wall -all: server +all: clean server -server: clean build_dir +server: build_dir $(CC) $(CFLAGS) distrans.c -o build/distrans chmod 0744 build/distrans