-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 1.01 KB
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 1.01 KB
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
.PHONY: all install uninstall build test potfiles
PREFIX ?= /usr
offline ?=
use_libsoup ?=
# Remove the devel headerbar style:
# make release=1
release ?=
all: build
update_bundle:
valac $(if $(offline),--define=OFFLINE,) $(if $(use_libsoup),--define=USE_LIBSOUP,) --target-glib=2.74 --pkg gtk4 $(if $(offline),,--pkg libarchive) $(if $(use_libsoup),,--pkg libsoup-3.0) --pkg webkitgtk-6.0 update-bundle.vala && ./update-bundle
build:
meson setup builddir --prefix=$(PREFIX)
meson configure builddir -Ddevel=$(if $(release),false,true)
meson compile -C builddir
install:
meson install -C builddir
uninstall:
sudo ninja uninstall -C builddir
test:
ninja test -C builddir
potfiles:
find ./ -not -path '*/.*' -type f -name "*.in" | sort > po/POTFILES
echo "" >> po/POTFILES
find ./ -not -path '*/.*' -type f -name "*.ui" -exec grep -l "translatable=\"yes\"" {} \; | sort >> po/POTFILES
echo "" >> po/POTFILES
find ./ -not -path '*/.*' -type f -name "*.vala" -exec grep -l "_(\"\|ngettext" {} \; | sort >> po/POTFILES