summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-05-04 17:33:42 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-05-04 17:33:42 -0400
commitb8ee0cba54870ff2f81047c64e1c31018964ebfc (patch)
treed29551a81b2b79e7e31792e3067ba9217c9ba9d0
parentf5d0d2d35396e46c4e0431d28c6895396f971d20 (diff)
clean up Makefile
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 06912e2..34bfc9d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,12 @@
-# Copyright (C) 2011, 2013-2014 Luke Shumaker <lukeshu@sbcglobal.net>
+# Copyright (C) 2011, 2013-2015 Luke Shumaker <lukeshu@sbcglobal.net>
prefix ?= /usr/local
bindir ?= $(prefix)/bin
+CFLAGS += -Wall -Werror -Wextra -pedantic -std=c99
+
INSTALL = install
RM = rm -f
+GOBUILD = go build
BINFILES = \
batterymon \
@@ -39,10 +42,8 @@ clean:
$(RM) $(BINFILES)
$(RM) *~
-%: %.php
- install -m755 $< $@
%: %.go
- go build -o $@ $<
+ $(GOBUILD) -o $@ $<
.gitignore: Makefile
printf '%s\n' '*~' $(BINFILES) > $@