From b8ee0cba54870ff2f81047c64e1c31018964ebfc Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 4 May 2015 17:33:42 -0400 Subject: clean up Makefile --- Makefile | 9 +++++---- 1 file 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 +# Copyright (C) 2011, 2013-2015 Luke Shumaker 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) > $@ -- cgit v1.2.3-2-g168b