From 4addcd2a4163f0767ec1ed696ac7eae49d55c8ff Mon Sep 17 00:00:00 2001 From: "B. Bergeron" Date: Wed, 16 Jul 2025 00:17:00 -0400 Subject: Initial commit --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4056a22 --- /dev/null +++ b/Makefile @@ -0,0 +1,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 -- cgit v1.2.3