summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7da056a..acd4c49 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
CMD = $(wildcard back/cmd/*)
BIN = $(addprefix bin/, $(notdir ${CMD}))
+SRC = $(shell find back -name '*.go')
all: doc public ${BIN}
@@ -9,10 +10,12 @@ public:
${BIN}: bin/%: back/cmd/%
go build -o $@ ./$<
+${BIN}: ${SRC}
+
doc: doc/arch.png
doc/arch.png: doc/arch.dot
dot -Tpng <$< >$@
clean:
- rm -rf bin public
+ rm -rf bin public tmp