uninstall rules have been rewritten

This commit is contained in:
Philippe PITTOLI 2024-06-21 21:53:18 +02:00
parent 81142cbbe5
commit 3a55fcfb12

View File

@ -38,15 +38,11 @@ install-bin: $(BINDIR) $(BINDIR)/hexa
install: install-bin install-pkgconfig install-library install-header
@echo "Now that you have installed the library, you should (probably) run ldconfig."
uninstall-library:
rm $(LIBDIR)/libhexa.a \
$(LIBDIR)/libhexa.so \
$(LIBDIR)/libhexa.so.*
uninstall-header:
rm $(INCLUDEDIR)/libhexa.h
uninstall-bin:
rm $(BINDIR)/hexa
uninstall: uninstall-library uninstall-header uninstall-bin
uninstall-library:; rm $(LIBDIR)/libhexa.a $(LIBDIR)/libhexa.so*
uninstall-header:; rm $(INCLUDEDIR)/libhexa.h
uninstall-bin:; rm $(BINDIR)/hexa
uninstall-pkgconfig:; rm $(PKGCONFIGDIR)/hexa.pc
uninstall: uninstall-pkgconfig uninstall-library uninstall-header uninstall-bin
mrproper:
rm -r docs zig-cache zig-out 2>/dev/null || true