# 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