Add make uninstall

This commit is contained in:
Josh Proehl 2023-03-30 18:33:46 -05:00
parent 9c82738c5a
commit 5b425971b5
2 changed files with 18 additions and 0 deletions

View file

@ -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

View file

@ -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`