-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
38 lines (28 loc) · 1.14 KB
/
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
# these are debug scripts and not meant to be published on Flathub
# Application ID for the Flatpak package
APP_ID = co.logonoff.awakeonlan
# Command to run the Flatpak builder
# BUILDER = flatpak run --command=flatpak-builder --socket=gpg-agent org.flatpak.Builder
BUILDER = flatpak-builder --install-deps-from=flathub
# Command to run the Flatpak builder linter
BUILDER_LINT = flatpak run --command=flatpak-builder-lint org.flatpak.Builder
# Directory where the Flatpak package is built
BUILDDIR = $(shell pwd)/build
build:
$(BUILDER) --user --install --force-clean --sandbox --ccache --mirror-screenshots-url=https://dl.flathub.org/media/ --repo=repo $(BUILDDIR) $(APP_ID).yml
lint:
$(BUILDER_LINT) manifest $(APP_ID).yml
$(BUILDER_LINT) repo repo
# keeps the data when the app is uninstalled
clean:
rm -rf repo
rm -rf build
rm -rf manifest
flatpak uninstall $(APP_ID) -y
reset: clean
rm -rf .flatpak-builder
run:
flatpak run $(APP_ID)
i18n:
xgettext --files-from=po/POTFILES --from-code=UTF-8 --output po/awakeonlan.pot --copyright-holder="logonoff" --package-name="$(APP_ID)"
# pushd po && msginit --locale=en --input=awakeonlan.pot && popd