blob: 4056a2209d673786d2763357dc8a9a547101325b (
plain)
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
|
# run_landlock - execute a command in landlock
# See LICENSE file for copyright and license details.
.POSIX:
include config.mk
all: run_landlock
run_landlock: run_landlock.c
$(CC) $(CFLAGS) $^ -o $@
clean:
rm run_landlock
install: run_landlock
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f run_landlock $(DESTDIR)$(PREFIX)/bin
chmod 4755 $(DESTDIR)$(PREFIX)/bin/run_landlock
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
sed "s/VERSION/$(VERSION)/g" < run_landlock.1 > $(DESTDIR)$(MANPREFIX)/man1/mntrun.1
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/run_landlock.1
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/run_landlock
rm -f $(DESTDIR)$(MANPREFIX)/man1/run_landlock.1
.PHONY: all clean install uninstall
|