-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
13 lines (12 loc) · 615 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
all: jailer linker shell-support/findup
install:
install -d $(DESTDIR)/lib/jailer $(DESTDIR)/bin
install jailer $(DESTDIR)/bin/jailer
install linker $(DESTDIR)/bin/linker
install shell-support/findup $(DESTDIR)/bin/findup
install shell-support/shell-trigger.zsh $(DESTDIR)/lib/jailer
install nix-helpers/jail-adapter.nix $(DESTDIR)/lib/jailer
ln -s . $(DESTDIR)/lib/jailer/nix-helpers
# FIXME the seds are too crude
sed -i -e 's#findup jail.nix#$(DESTDIR)/bin/findup jail.nix#' $(DESTDIR)/lib/jailer/shell-trigger.zsh
sed -i -e 's#import ../default.nix#$(DESTDIR)#' $(DESTDIR)/lib/jailer/jail-adapter.nix