-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 779 Bytes
/
Makefile
File metadata and controls
36 lines (29 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
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
.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)