Skip to content

Commit 72f6655

Browse files
committed
Makefile: add 'make uninstall'
An uninstall option, in addition to RPM install/uninstall, is arguably quite convenient. Yet, Makefiles usually do not provide an 'uninstall' target since that would require recording an installation manifest and custom logic for removal. However, meson has an internal feature doing precisely that. This change invokes the meson uninstall feature via "make uninstall". Signed-off-by: Simon A. F. Lund <[email protected]>
1 parent 8cbbfd6 commit 72f6655

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ endif
3434
install dist: ${BUILD-DIR}
3535
cd ${BUILD-DIR} && meson $@
3636

37+
.PHONY: uninstall
38+
uninstall:
39+
cd ${BUILD-DIR} && meson --internal uninstall
40+
3741
.PHONY: test
3842
test: ${BUILD-DIR}
3943
ninja -C ${BUILD-DIR} $@

0 commit comments

Comments
 (0)