makefile destdir (#36)
This commit is contained in:
parent
c364996aad
commit
51001d37b7
11
Makefile
11
Makefile
|
|
@ -1,3 +1,5 @@
|
|||
DESTDIR=/usr
|
||||
|
||||
all:
|
||||
make -C ./lib/pclsync fs
|
||||
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_PROGRAMS=OFF -DENABLE_TESTING=OFF -H./lib/mbedtls-2.1.14 -B./lib/mbedtls-2.1.14/build
|
||||
|
|
@ -12,9 +14,10 @@ clean:
|
|||
rm -rf ./cmd/pcloudcc/build
|
||||
|
||||
install:
|
||||
install -m 755 cmd/pcloudcc/build/pcloudcc /usr/bin/pcloudcc
|
||||
install -m 755 cmd/pcloudcc/build/libpcloudcc_lib.so /usr/lib/libpcloudcc_lib.so
|
||||
install -d $(DESTDIR)/{bin,lib}
|
||||
install -m 755 cmd/pcloudcc/build/pcloudcc $(DESTDIR)/bin/pcloudcc
|
||||
install -m 755 cmd/pcloudcc/build/libpcloudcc_lib.so $(DESTDIR)/lib/libpcloudcc_lib.so
|
||||
|
||||
uninstall:
|
||||
rm -f /usr/bin/pcloudcc
|
||||
rm -f /usr/lib/libpcloudcc_lib.so
|
||||
rm -f $(DESTDIR)/bin/pcloudcc
|
||||
rm -f $(DESTDIR)/lib/libpcloudcc_lib.so
|
||||
|
|
|
|||
Loading…
Reference in New Issue