diff --git a/Makefile b/Makefile index 067f0b1..e5af598 100644 --- a/Makefile +++ b/Makefile @@ -105,6 +105,22 @@ clean: $(MAKE) -C VoiceTransmit clean $(MAKE) -C ircDDBGatewayConfig clean +.PHONY: uninstall +uninstall: +ifeq ($(TARGET), opendv) + userdel opendv || true + rm -r /var/log/opendv || true +endif + rm -r $(DESTDIR)$(DATADIR) || true + rm $(DESTDIR)$(BINDIR)/aprstransmitd || true + rm $(DESTDIR)$(BINDIR)/ircddbgatewayd || true + rm $(DESTDIR)$(BINDIR)/remotecontrold || true + rm $(DESTDIR)$(BINDIR)/starnetserverd || true + rm $(DESTDIR)$(BINDIR)/texttransmitd || true + rm $(DESTDIR)$(BINDIR)/timercontrold || true + rm $(DESTDIR)$(BINDIR)/timeserverd || true + @echo "*** NOTE: Leaving /etc/ircddbgateway in place ***" + .PHONY: force force : @true diff --git a/README.md b/README.md index a4bf52a..14b034f 100644 --- a/README.md +++ b/README.md @@ -47,3 +47,5 @@ When building in TARGET=opendv mode, the necessary systemd unit files will be in sudo systemctl enable ircddbgatewayd.service #enable service sudo service ircddbgatewayd start ``` + +If you wish to remove the manually installed files you may use `sudo make uninstall`