Skip to content

Commit

Permalink
Add uninstall option to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dstaesse committed Feb 17, 2023
1 parent 8949028 commit fa85cb2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ endif
clean:
rm -f *.o $(EXEC) $(LIB) $(LIB_SHARED)

uninstall:
rm -f ${prefix}/include/toml.h
rm -f ${prefix}/lib/$(LIB)
rm -f ${prefix}/lib/$(LIB_SHARED)
ifeq "$(prefix)" "/usr/local"
rm -f /usr/local/lib/pkgconfig/$(PCFILE)
endif

format:
clang-format -i $(shell find . -name '*.[ch]')
Expand Down

0 comments on commit fa85cb2

Please sign in to comment.