Skip to content

Commit 9f98840

Browse files
Merlinemersion
authored andcommitted
Makefile: Add uninstall rule
1 parent 280fdf5 commit 9f98840

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ install: mrsh libmrsh.so.$(SOVERSION) $(OUTDIR)/mrsh.pc
8080
done
8181
install -m644 $(OUTDIR)/mrsh.pc $(PCDIR)/mrsh.pc
8282

83+
uninstall:
84+
rm -f $(BINDIR)/mrsh
85+
rm -f $(LIBDIR)/libmrsh.so.$(SOVERSION)
86+
for inc in $(public_includes); do \
87+
rm -f $(INCDIR)/mrsh/$$(basename $$inc); \
88+
done
89+
rm -f $(PCDIR)/mrsh.pc
90+
8391
clean:
8492
rm -rf \
8593
$(libmrsh_objects) \

0 commit comments

Comments
 (0)