Changements sur le Makefile

- Ajout de l'argument '-p' pour les commandes install
- Ajout de ldconfig pour la règle uninstall
This commit is contained in:
Valentin Moguérou 2021-10-30 15:36:05 +02:00
parent ec8adc4236
commit 93e9c669fc

View File

@ -25,12 +25,14 @@ mrproper: clean
install: bin/libcatwalk.so install: bin/libcatwalk.so
@mkdir -p /usr/local/include/catwalk/ @mkdir -p /usr/local/include/catwalk/
install include/*.h /usr/local/include/catwalk/ install -p include/*.h /usr/local/include/catwalk/
@mkdir -p /usr/local/lib @mkdir -p /usr/local/lib
install bin/libcatwalk.so /usr/local/lib/ install -p bin/libcatwalk.so /usr/local/lib/
# configuration of links # configuration of links
ldconfig /usr/local/lib/libcatwalk.so ldconfig /usr/local/lib/libcatwalk.so
uninstall: uninstall:
-rm -rf /usr/local/include/catwalk -rm -rf /usr/local/include/catwalk
-rm -f /usr/local/lib/libcatwalk.so -rm -f /usr/local/lib/libcatwalk.so
# reconfiguration of links
ldconfig /usr/local/lib/libcatwalk.so