Files
slide/Makefile
Nathan Coad a9c5139d55
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
add mqtt control
2026-01-31 16:50:34 +11:00

38 lines
829 B
Makefile

VERSION ?= 0.0.0
BINARY ?= slide
ARCH ?= noarch
.PHONY: all
all: build
.PHONY: install-deps-deb
install-deps-deb:
apt install qt5-qmake libexif12 qt5-default libexif-dev qt5-image-formats-plugins libmosquitto-dev
check-deps-deb:
dpkg -l | grep qt5-qmake
dpkg -l | grep libexif12
dpkg -l | grep libexif-dev
dpkg -l | grep qt5-default
dpkg -l | grep qt5-image-formats-plugins
dpkg -l | grep libmosquitto-dev
.PHONY: clean
clean:
rm -rf build
build: $(shell find src -type f)
mkdir -p build
qmake src/slide.pro -o build/Makefile
make -C build
PACKAGE_DIR=build/slide_$(VERSION)
.PHONY: package
package: clean build
mkdir -p $(PACKAGE_DIR)
cp -r "./build/$(BINARY)" $(PACKAGE_DIR)
cp "INSTALL.md" $(PACKAGE_DIR)
cp "LICENSE" $(PACKAGE_DIR)
cd build && tar cfz slide_$(ARCH)_$(VERSION).tar.gz slide_$(VERSION)