]> pd.if.org Git - zpackage/commitdiff
use /sbin for tarball and install targets v0.2.16
authorNathan Wagner <nw@hydaspes.if.org>
Sat, 24 Nov 2018 22:01:41 +0000 (22:01 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 24 Nov 2018 22:01:41 +0000 (22:01 +0000)
Makefile

index 6e31be41cdcff0abac078f3164436f88924e203a..8113f9db5658b1b408e2f93196a159183480100e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -81,7 +81,7 @@ tarball: zpm-$(ZPMVER)-1.tar.xz
 
 zpm-$(ZPMVER)-1.tar.xz: programs
        rm -f $@
-       tar -cJf $@ --transform='s|^|bin/|' \
+       tar -cJf $@ --transform='s|^|sbin/|' \
                $(PROGRAMS)
 
 lzma.c: mklzma
@@ -184,8 +184,8 @@ libelf.a: elf/libelf.o
        ar rcuv $@ $?
 
 install: $(COMPILED)
-       test -d $(DESTDIR)/bin || install -d $(DESTDIR)/bin
-       install -D $(PROGRAMS) $(DESTDIR)/bin
+       test -d $(DESTDIR)/sbin || install -d $(DESTDIR)/sbin
+       install $(PROGRAMS) $(DESTDIR)/sbin
 
 scan-prep: clean sqlite/sqlite3.o sqlite/shell.o lib/liblzma.a
        @echo scan-build -v -o report make -j10