-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathMakefile.cmake
More file actions
35 lines (28 loc) · 922 Bytes
/
Makefile.cmake
File metadata and controls
35 lines (28 loc) · 922 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
# vim: set ft=make :
.PHONY: appimage clean debug package release
default:
@echo "targets: appimage (Linux only), clean, debug, package, release"
appimage:
cmake -H. -Bbuilds/appimage -DCMAKE_INSTALL_PREFIX=/usr
cd builds/appimage && make install DESTDIR=../AppDir
@if [ ! "$(EGEN)" = "" ]; then \
rm -rf builds/AppDir/opt/egen && \
mkdir -p builds/AppDir/opt/egen && \
unzip -d builds/AppDir/opt/egen "$(EGEN)" && \
builds/AppDir/usr/bin/dbt5-build-egen --include-dir=src/include \
--patch-dir=patches --source-dir=src \
builds/AppDir/opt/egen; \
fi
cd builds/appimage && make appimage
clean:
-rm -rf builds
debug:
cmake -H. -Bbuilds/debug -DCMAKE_BUILD_TYPE=Debug
cd builds/debug && make
package:
git checkout-index --prefix=builds/source/ -a
cmake -Hbuilds/source -Bbuilds/source
cd builds/source && make package_source
release:
cmake -H. -Bbuilds/release
cd builds/release && make