1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00
2022-11-10 10:42:42 +01:00

44 lines
551 B
Makefile

#
# Build the Alice Looking Glass locally
#
PROG=alice-lg
ARCH=amd64
VERSION=$(shell cat ./VERSION)
all: alice
test: ui_test backend_test
alice: ui backend
cp cmd/alice-lg/alice-lg-* bin/
ui:
$(MAKE) -C ui/
ui_test:
$(MAKE) -C ui/ test
backend:
$(MAKE) -C cmd/alice-lg/ static
backend_test:
mkdir -p ./ui/build
touch ./ui/build/UI_BUILD_STUB
go test ./pkg/...
rm ./ui/build/UI_BUILD_STUB
clean:
rm -f bin/alice-lg-linux-amd64
rm -f bin/alice-lg-osx-amd64
rm -rf $(DIST)
rm ./ui/build/UI_BUILD_STUB
.PHONY: backend ui clean