-
Notifications
You must be signed in to change notification settings - Fork 39
/
Makefile
38 lines (30 loc) · 932 Bytes
/
Makefile
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
37
38
.PHONY: default all clean
include project.conf
PROJECT_ARCHIVE=$(PROJECT_NAME)-$(PROJECT_VERSION)
DESTDIR ?=
PREFIX ?= /usr
BINDIR ?= $(PREFIX)/bin
DATADIR ?= $(PREFIX)/share
default: all
all:
@./build --all
clean:
@./build --clean
byte native byte-debug native-profile:
@./build --$@
install:
install -Dp --mode=0755 laby \
"$(DESTDIR)$(BINDIR)/laby"
install -d "$(DESTDIR)$(DATADIR)/laby/"
cp -pr data/* "$(DESTDIR)$(DATADIR)/laby/"
install -Dp --mode=0644 data/tiles/ant-e.svg \
"$(DESTDIR)$(DATADIR)/icons/hicolor/scalable/apps/laby.svg"
desktop-file-install packaging/laby.desktop \
--dir="$(DESTDIR)$(DATADIR)/applications"
install -Dp --mode=0644 packaging/laby.appdata.xml \
"$(DESTDIR)$(DATADIR)/appdata/laby.appdata.xml"
dist:
@mkdir _dist
@git archive --prefix="$(PROJECT_ARCHIVE)/" HEAD \
| gzip >"_dist/$(PROJECT_ARCHIVE).tar.gz"
@echo archive stored in "_dist/$(PROJECT_ARCHIVE).tar.gz"