From 9c3dd7f2d013653fcc0ed50903a35193697150d3 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Tue, 21 Apr 2020 23:18:14 -0400
Subject: made Makefile more posix-y
---
Makefile | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
(limited to 'Makefile')
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)
--
cgit