Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no "make uninstall" #35

Closed
iva2k opened this issue Sep 29, 2013 · 3 comments
Closed

There is no "make uninstall" #35

iva2k opened this issue Sep 29, 2013 · 3 comments

Comments

@iva2k
Copy link

iva2k commented Sep 29, 2013

After doing "make install" there is no easy way to uninstall backup-manager.

Good practice in makefiles with "install" is to provide an "uninstall".

@iva2k
Copy link
Author

iva2k commented Sep 29, 2013

Adding this section to "Makefile" seems to be sufficient:

uninstall:
    @rm -fv $(DESTDIR)$(SBINDIR)/backup-manager
    @rm -fv $(DESTDIR)$(BINDIR)/backup-manager-purge
    @rm -fv $(DESTDIR)$(BINDIR)/backup-manager-upload
    @rm -fv $(SHAREDIR)/backup-manager.conf.tpl
    @rm -fv $(DESTDIR)$(PREFIX)/share/man/man8/backup-manager*.8
    @rm -Rfv $(LIBDIR)
    @rm -Rfv $(PERL5DIR)/BackupManager
    @rm -Rfv $(SHAREDIR)
    @rm -Rfv $(DESTDIR)$(PREFIX)/share/doc/backup-manager

@iva2k
Copy link
Author

iva2k commented Sep 29, 2013

Looks like I missed translation files. it should be:

uninstall:
    @rm -fv $(DESTDIR)$(SBINDIR)/backup-manager
    @rm -fv $(DESTDIR)$(BINDIR)/backup-manager-purge
    @rm -fv $(DESTDIR)$(BINDIR)/backup-manager-upload
    @rm -fv $(SHAREDIR)/backup-manager.conf.tpl
    @rm -fv $(DESTDIR)$(PREFIX)/share/man/man8/backup-manager*.8
    @rm -Rfv $(LIBDIR)
    @rm -Rfv $(PERL5DIR)/BackupManager
    @rm -Rfv $(SHAREDIR)
    @rm -Rfv $(DESTDIR)$(PREFIX)/share/doc/backup-manager
    @rm -fv $(DESTDIR)$(PREFIX)/share/locale/*/LC_MESSAGES/backup-manager.mo

kissifrot pushed a commit that referenced this issue Oct 30, 2015
@kissifrot
Copy link
Collaborator

Added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants