summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-04-21 23:18:14 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-04-21 23:18:14 -0400
commit9c3dd7f2d013653fcc0ed50903a35193697150d3 (patch)
tree0d8a1fcc2a126897c5ab4f2a5f409452a78a5861 /Makefile
parent54724280736a862a530ad0d2e5dbe55e1e18e182 (diff)
made Makefile more posix-y
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)