summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '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) > $@