1
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-03-29 11:20:15 +01:00

Remove -D option from install commands

The '-D' option of `install` is not implemented on some systems that
don't use GNU install. Its uses were replaced with `mkdir -p` commands
to eventually provide the missing folders.
This commit is contained in:
Giuseppe Lumia 2020-11-04 09:08:45 +01:00 committed by Drew DeVault
parent 1a747cb6c2
commit 4a6172f1bf
2 changed files with 12 additions and 9 deletions

View File

@ -56,13 +56,16 @@ distclean: clean
install: all install_docs
mkdir -p $(BINDIR)
install -Dm755 gmni $(BINDIR)/gmni
install -Dm755 gmnlm $(BINDIR)/gmnlm
install -Dm755 libgmni.a $(LIBDIR)/libgmni.a
install -Dm644 include/gmni/gmni.h $(INCLUDEDIR)/gmni/gmni.h
install -Dm644 include/gmni/tofu.h $(INCLUDEDIR)/gmni/tofu.h
install -Dm644 include/gmni/url.h $(INCLUDEDIR)/gmni/url.h
install -Dm644 libgmni.pc $(LIBDIR)/pkgconfig/libgmni.pc
mkdir -p $(LIBDIR)
mkdir -p $(INCLUDEDIR)/gmni
mkdir -p $(LIBDIR)/pkgconfig
install -m755 gmni $(BINDIR)/gmni
install -m755 gmnlm $(BINDIR)/gmnlm
install -m755 libgmni.a $(LIBDIR)/libgmni.a
install -m644 include/gmni/gmni.h $(INCLUDEDIR)/gmni/gmni.h
install -m644 include/gmni/tofu.h $(INCLUDEDIR)/gmni/tofu.h
install -m644 include/gmni/url.h $(INCLUDEDIR)/gmni/url.h
install -m644 libgmni.pc $(LIBDIR)/pkgconfig/libgmni.pc
uninstall:
rm -f $(BINDIR)/gmni

View File

@ -127,8 +127,8 @@ run_configure() {
all="$all docs"
install_docs="
mkdir -p \$(MANDIR)/man1
install -Dm644 doc/gmni.1 \$(MANDIR)/man1/gmni.1
install -Dm644 doc/gmnlm.1 \$(MANDIR)/man1/gmnlm.1"
install -m644 doc/gmni.1 \$(MANDIR)/man1/gmni.1
install -m644 doc/gmnlm.1 \$(MANDIR)/man1/gmnlm.1"
else
echo no
fi