aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-01-09 18:56:14 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-01-09 18:56:14 +0100
commitba6971386cb1dd975a88884186a1878df1daa710 (patch)
tree0f55d6d3c344a61fa70f74040930fff0846c368c
parent3c153391e1fe9c6b00ab77a99e93313981cb0e4e (diff)
Make Makefile even more general
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 65004bb..de7a05a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,9 @@
-PROG := calc
-GO := go
GOFILES := $(wildcard *.go)
YYFILES := $(wildcard *.y)
AUTOGEN := $(YYFILES:.y=.go)
+GO := go
-$(PROG): $(GOFILES) $(AUTOGEN)
+build: $(GOFILES) $(AUTOGEN)
$(GO) build
%.go: %.y
@@ -14,7 +13,7 @@ clean:
$(GO) clean
$(RM) $(AUTOGEN) y.output
-install:
+install: build
$(GO) install
.PHONY: clean