-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (20 loc) · 819 Bytes
/
Makefile
File metadata and controls
22 lines (20 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
prefix = /usr/local
sysconfdir = /etc
all:
echo "Python package doesn't need compiling!"
install:
install src/maps $(DESTDIR)$(prefix)/bin/maps
install --mode 644 src/completion.bash $(DESTDIR)$(prefix)/share/bash-completion/completions/maps
if [ $$(apparmor_parser --version | head -n1 | awk '{print $$4}' | cut -c1) -lt 4 ]; then\
install --mode 644 src/maps-aa-profile-abi-3 $(DESTDIR)$(sysconfdir)/apparmor.d/usr.bin.maps;\
else\
install --mode 644 src/maps-aa-profile-abi-4 $(DESTDIR)$(sysconfdir)/apparmor.d/usr.bin.maps;\
fi
install --mode 644 src/maps.desktop $(DESTDIR)${prefix}/share/applications/maps.desktop
xdg-mime default maps.desktop x-scheme-handler/maps
clean:
echo "nothing to compile, so nothing to clean!"