Browse Source

#259: sudo make uninstall

ithewei 3 năm trước cách đây
mục cha
commit
c732c512a2
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      Makefile

+ 6 - 1
Makefile

@@ -96,6 +96,11 @@ install:
 	$(CP) lib/libhv.*  $(INSTALL_LIBDIR)
 	@echo "make install done."
 
+uninstall: clean
+	$(RM) $(PREFIX)/include/hv
+	$(RM) $(PREFIX)/lib/libhv.*
+	@echo "make uninstall done."
+
 hmain_test: prepare
 	$(MAKEF) TARGET=$@ SRCDIRS=". base cpputil" SRCS="examples/hmain_test.cpp"
 
@@ -274,4 +279,4 @@ echo-servers:
 echo-benchmark: echo-servers
 	bash echo-servers/benchmark.sh
 
-.PHONY: clean prepare install libhv examples unittest evpp echo-servers
+.PHONY: clean prepare install uninstall libhv examples unittest evpp echo-servers