summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 71954a7..7f6021d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,10 @@
-timer: timer.c bin/
- gcc -o bin/timer timer.c
+.POSIX:
-bin/:
- mkdir bin
+OBJ = timer
+BIN = /usr/local/bin
+all: $(OBJ)
-.PHONY: install
-install:
- cp bin/* /usr/local/bin
+timer: timer.c
+
+install: all
+ cp $(OBJ) $(BIN)