Fix install permissions, errors and, or omissions
This commit is contained in:
parent
a077f55a43
commit
6a31f4b48b
1 changed files with 7 additions and 4 deletions
11
Makefile
11
Makefile
|
@ -45,13 +45,16 @@ clean:
|
|||
rm -f lib/*.o libmist.so libmist.a
|
||||
rm -rf ./docs
|
||||
|
||||
distclean: clean
|
||||
|
||||
install: libmist.so libmist.a lib/*.h
|
||||
mkdir -p $(DESTDIR)$(includedir)/mist
|
||||
install lib/*.h $(DESTDIR)$(includedir)/mist/
|
||||
install libmist.so $(DESTDIR)$(libdir)/libmist.so
|
||||
install libmist.a $(DESTDIR)$(libdir)/libmist.a
|
||||
install -m 644 lib/*.h $(DESTDIR)$(includedir)/mist/
|
||||
mkdir -p $(DESTDIR)$(libdir)
|
||||
install -m 644 libmist.a $(DESTDIR)$(libdir)/libmist.a
|
||||
install -m 644 libmist.so $(DESTDIR)$(libdir)/libmist.so
|
||||
$(POST_INSTALL)
|
||||
ldconfig
|
||||
if [ "$$USER" = "root" ]; then ldconfig; else echo "run: sudo ldconfig"; fi
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(includedir)/mist/*.h
|
||||
|
|
Loading…
Add table
Reference in a new issue