File: Makefile

package info (click to toggle)
cambalache 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,212 kB
  • sloc: python: 19,742; xml: 13,309; sql: 422; makefile: 212; ansic: 158; sh: 11
file content (32 lines) | stat: -rw-r--r-- 1,175 bytes parent folder | download
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
SDK_VERSION=50

cambalache.flatpak: repo
	flatpak build-bundle repo $@ ar.xjuan.Cambalache

repo: ar.xjuan.Cambalache.json .git/objects
	flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
	flatpak install --noninteractive --user flathub org.gnome.Sdk//${SDK_VERSION}
	flatpak install --noninteractive --user flathub org.gnome.Platform//${SDK_VERSION}
	flatpak-builder --force-clean --repo=repo build ar.xjuan.Cambalache.json


cambalache_arm.flatpak: repo_arm
	flatpak build-bundle --arch=aarch64 repo $@ ar.xjuan.Cambalache

repo_arm: ar.xjuan.Cambalache.json .git/objects
	flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
	flatpak install --noninteractive --user flathub org.gnome.Sdk/aarch64/${SDK_VERSION}
	flatpak install --noninteractive --user flathub org.gnome.Platform/aarch64/${SDK_VERSION}
	flatpak-builder --arch=aarch64 --force-clean --repo=repo build ar.xjuan.Cambalache.json


.PHONY: install clean veryclean

install: cambalache.flatpak
	flatpak install --user cambalache.flatpak

clean:
	rm -rf repo cambalache.flatpak

veryclean: clean
	rm -rf .flatpak-builder