| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- define delete-files
- python -c "import shutil;shutil.rmtree('$(1)', ignore_errors=True)"
- endef
- service:
- $(MAKE) -wC service
- service-prep:
- $(MAKE) -wC service prep
- windows-resources:
- VERSION="$(VERSION)" ./var/windows/generate-resources.sh
- windows-msi:
- VERSION="$(VERSION)" ./var/windows/build-msi.sh
- service-unittests:
- $(MAKE) -wC service unittests
- service-codestyle:
- $(MAKE) -wC service codestyle
- frontend-codestyle:
- $(MAKE) -wC frontend codestyle
- it:
- $(MAKE) -wC integration-tests
- go-tools:
- $(MAKE) -wC service go-tools
- proto: go-tools
- $(MAKE) -wC proto
- dist:
- echo "dist noop"
- podman-image:
- buildah bud -f Dockerfile.singlearch -t olivetin
- podman-container:
- podman kill olivetin || true
- podman rm olivetin || true
- podman create --name olivetin -p 1337:1337 -v /etc/OliveTin/:/config:ro olivetin
- podman start olivetin
- integration-tests-docker-image:
- docker rm -f olivetin && docker rmi -f olivetin
- docker build -f Dockerfile.singlearch -t olivetin:latest .
- docker create --name olivetin -p 1337:1337 -v `pwd`/integration-tests/configs/:/config/ olivetin
- devrun: compile
- killall OliveTin || true
- ./OliveTin &
- devcontainer: compile podman-image podman-container
- webui-dist:
- $(MAKE) -wC frontend dist
- mv frontend/dist webui
- clean:
- $(call delete-files,dist)
- $(call delete-files,OliveTin)
- $(call delete-files,OliveTin.armhf)
- $(call delete-files,OliveTin.exe)
- rm -f service/resource_windows_*.syso
- $(call delete-files,reports)
- $(call delete-files,gen)
- config-tool:
- cd service && go run cmd/config-tool/main.go
- .PHONY: proto service windows-resources windows-msi
|