mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 05:38:14 +00:00
Update name in install target for Make
This commit is contained in:
parent
6a4ae35788
commit
5285970871
1 changed files with 8 additions and 2 deletions
10
Makefile
10
Makefile
|
@ -1,6 +1,7 @@
|
|||
|
||||
DESTDIR=/usr/local
|
||||
PREFIX=polarssl_
|
||||
PREFIX=mbedtls_
|
||||
OLDPREFIX=polarssl_
|
||||
|
||||
.SILENT:
|
||||
|
||||
|
@ -21,26 +22,31 @@ install:
|
|||
cp -r include/polarssl $(DESTDIR)/include
|
||||
|
||||
mkdir -p $(DESTDIR)/lib
|
||||
cp library/libpolarssl.* $(DESTDIR)/lib
|
||||
cp library/libpolarssl.* library/libmbedtls.* $(DESTDIR)/lib
|
||||
|
||||
mkdir -p $(DESTDIR)/bin
|
||||
for p in programs/*/* ; do \
|
||||
if [ -x $$p ] && [ ! -d $$p ] ; \
|
||||
then \
|
||||
f=$(PREFIX)`basename $$p` ; \
|
||||
o=$(OLDPREFIX)`basename $$p` ; \
|
||||
cp $$p $(DESTDIR)/bin/$$f ; \
|
||||
ln -sf $$f $(DESTDIR)/bin/$$o ; \
|
||||
fi \
|
||||
done
|
||||
|
||||
uninstall:
|
||||
rm -rf $(DESTDIR)/include/polarssl
|
||||
rm -f $(DESTDIR)/lib/libpolarssl.*
|
||||
rm -f $(DESTDIR)/lib/libmbedtls.*
|
||||
|
||||
for p in programs/*/* ; do \
|
||||
if [ -x $$p ] && [ ! -d $$p ] ; \
|
||||
then \
|
||||
f=$(PREFIX)`basename $$p` ; \
|
||||
o=$(OLDPREFIX)`basename $$p` ; \
|
||||
rm -f $(DESTDIR)/bin/$$f ; \
|
||||
rm -f $(DESTDIR)/bin/$$o ; \
|
||||
fi \
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in a new issue