summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5f7f1bd..7da056a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,12 @@
-all: doc public bin/webshopd
+CMD = $(wildcard back/cmd/*)
+BIN = $(addprefix bin/, $(notdir ${CMD}))
+
+all: doc public ${BIN}
public:
- hugo build
+ hugo build front
-bin/%: cmd/%
+${BIN}: bin/%: back/cmd/%
go build -o $@ ./$<
doc: doc/arch.png