diff options
author | June McEnroe <june@causal.agency> | 2019-07-28 15:41:06 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-07-28 15:41:06 -0400 |
commit | f40454098c596dfb85cccfe7254d370442cca77c (patch) | |
tree | 928e9daeff539ee0bf4abd9eb73ad78549f69dd0 /Makefile | |
parent | Clean up ptee (diff) | |
download | stream-f40454098c596dfb85cccfe7254d370442cca77c.tar.gz stream-f40454098c596dfb85cccfe7254d370442cca77c.zip |
Remove old commands
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 38 |
1 files changed, 17 insertions, 21 deletions
diff --git a/Makefile b/Makefile index 7e8053e..ece7cca 100644 --- a/Makefile +++ b/Makefile @@ -1,36 +1,32 @@ -BINS = create destroy ingest ptee ssh-command view -USER = stream +CHROOT_USER = stream +CHROOT_GROUP = ${CHROOT_USER} CFLAGS += -Wall -Wextra -Wpedantic +LDFLAGS = -static LDLIBS = -lutil -all: tags $(BINS) +-include config.mk + +BINS = ptee + +all: tags ${BINS} tags: *.c ctags -w *.c -chroot.tar: $(BINS) +chroot.tar: ${BINS} mkdir -p root install -d -o root -g wheel \ + root \ root/bin \ root/home \ - root/lib \ - root/libexec \ - root/usr \ - root/usr/share \ root/usr/share/misc - install -d -o $(USER) -g $(USER) root/home/$(USER) - install -o root -g wheel -m 555 /libexec/ld-elf.so.1 root/libexec - install -o root -g wheel -m 444 \ - /lib/libc.so.7 \ - /lib/libedit.so.7 \ - /lib/libncursesw.so.8 \ - /lib/libutil.so.9 \ - root/lib - install -o root -g wheel -m 444 /usr/share/misc/termcap.db root/usr/share/misc - install -o root -g wheel -m 555 /bin/sh root/bin - install -o root -g wheel -m 555 $(BINS) root/bin - tar -c -f chroot.tar -C root bin home lib libexec usr + install -d -o ${CHROOT_USER} -g ${CHROOT_GROUP} root/home/${CHROOT_USER} + cp -af /usr/share/locale root/usr/share + cp -fp /usr/share/misc/termcap.db root/usr/share/misc + cp -fp /rescue/sh root/bin + install ${BINS} root/bin + tar -c -f chroot.tar -C root bin home usr clean: - rm -f tags $(BINS) chroot.tar + rm -fr ${BINS} tags chroot.tar root |