Skip to content

Commit 0acad90

Browse files
authored
Merge pull request #76 from Lifang-Zhang/uninstall-rule
Makefile: add uninstall rule
2 parents 0f8d257 + 00173e3 commit 0acad90

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,13 @@ rpm: rpmprep
8989
lint:
9090
clang-tidy -quiet -warnings-as-errors *.c *.h
9191

92+
uninstall:
93+
rm -f $(DESTDIR)$(PREFIX)/include/libcli.h
94+
ifeq (1,$(STATIC_LIB))
95+
rm -f $(DESTDIR)$(PREFIX)/lib/$(LIB_STATIC)
96+
endif
97+
ifeq (1,$(DYNAMIC_LIB))
98+
rm -f $(DESTDIR)$(PREFIX)/lib/$(LIB).$(MAJOR).$(MINOR).$(REVISION)
99+
rm -f $(DESTDIR)$(PREFIX)/lib/$(LIB).$(MAJOR).$(MINOR)
100+
rm -f $(DESTDIR)$(PREFIX)/lib/$(LIB)
101+
endif

0 commit comments

Comments
 (0)