-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (38 loc) · 1.27 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
DIST_DIR=./dist
PKGNAME=map-io
PKGDIR=pkg
.PHONY: build install arch arch-checksum arch-install run arch-docker-build flatpak-builld flatpak-install flatpak-run
build:
ronn -r man.md --pipe | gzip - > "$(PKGNAME).1.gz"
install:
install -D -t "$(PKGDIR)/usr/share/man/man1/" "$(PKGNAME).1.gz"
install -D -T "$(PKGNAME).sh" "$(PKGDIR)/usr/bin/$(PKGNAME)"
install -D -t "$(PKGDIR)/usr/share/applications/" "$(PKGNAME).desktop"
arch: build arch-docker-build arch-install
arch-docker-build:
docker build -t arch wrappers/arch/
arch-checksum:
cd wrappers/arch/; updpkgsums
ARCH_PKGBUILD=PKGBUILD
arch-install:
-rm wrappers/arch/$(PKGNAME)*.tar.gz
cd wrappers/arch/; makepkg -Ccfirs --noconfirm -p $(ARCH_PKGBUILD)
flatpak-build:
flatpak-builder build wrappers/flatpak/manifest.yml --force-clean
flatpak-install:
flatpak-builder --user --install --force-clean build wrappers/flatpak/manifest.yml
flatpak-run:
flatpak run local.jonathancowling.MapIO
deb-docker-build:
docker build -t deb wrappers/debian/
deb-build:
rm -r build dist
mkdir -p build dist build/map-io/DEBIAN/
make PKGDIR=build/map-io build install
cp wrappers/debian/control build/map-io/DEBIAN/
dpkg -b build/map-io dist/map-io.deb
deb-install:
- sudo dpkg -i
apt-get install -f -y
run:
./map-io.sh