1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 00:10:27 +00:00
Don't rm -rf the wrong directory on uninstall.
This commit is contained in:
Calvin Rose 2019-06-24 08:21:07 -04:00
parent bedd9ccaa1
commit f7f2f5e84f

View File

@ -305,6 +305,15 @@ install: $(JANET_TARGET) $(PKG_CONFIG_PATH)/janet.pc
cp janet.1 $(MANPATH) cp janet.1 $(MANPATH)
-ldconfig $(LIBDIR) -ldconfig $(LIBDIR)
uninstall:
-rm $(BINDIR)/janet
-rm $(BINDIR)/jpm
-rm -rf $(INCLUDEDIR)/janet
-rm -rf $(LIBDIR)/libjanet.*
-rm $(PKG_CONFIG_PATH)/janet.pc
-rm $(MANPATH)/janet.1
# -rm -rf $(JANET_PATH)/* - err on the side of correctness here
################# #################
##### Other ##### ##### Other #####
################# #################
@ -332,9 +341,5 @@ build/embed_test: build/embed_janet.o build/embed_main.o
test-amalg: build/embed_test test-amalg: build/embed_test
./build/embed_test ./build/embed_test
uninstall:
-rm $(BINDIR)/../$(JANET_TARGET)
-rm -rf $(INCLUDEDIR)
.PHONY: clean install repl debug valgrind test amalg \ .PHONY: clean install repl debug valgrind test amalg \
valtest emscripten dist uninstall docs grammar format valtest emscripten dist uninstall docs grammar format