Load config.mk in Makefile

This commit is contained in:
Alexander Neumann 2014-11-16 15:40:04 +01:00
parent 7006e13ca9
commit cf33b01582
2 changed files with 5 additions and 1 deletions

1
cmd/khepri/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
config.mk

View file

@ -6,12 +6,15 @@ TAGS =
.PHONY: all clean debug
# include config file if it exists
-include $(CURDIR)/config.mk
all: khepri
khepri: *.go $(wildcard ../../*.go) $(wildcard ../../*/*.go)
go build $(TAGS) -ldflags "$(LDFLAGS)"
debug: TAGS=-tags debug
debug: TAGS=-tags debug_cmd
debug: khepri
clean: