diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-05-04 17:33:42 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-05-04 17:33:42 -0400 |
commit | b8ee0cba54870ff2f81047c64e1c31018964ebfc (patch) | |
tree | d29551a81b2b79e7e31792e3067ba9217c9ba9d0 | |
parent | f5d0d2d35396e46c4e0431d28c6895396f971d20 (diff) |
clean up Makefile
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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) > $@ |