Skip to content

Commit

Permalink
Add make unistall, fixes issue #35
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe committed Oct 30, 2015
1 parent 14ac6d5 commit 5488b9d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Backup Manager 0.7.12 (not yet released)
[ Philippe Villiers ]
* Fix for issue #29
Add make uninstall

Backup Manager 0.7.11
[ Matthieu CERDA ]
* Add bandwidth limiting support in rsync uploads
Expand Down
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ build: manpages

# The backup-manager package
install: build install_lib install_bin install_contrib install_man install_po
install_binary: build install_lib install_bin
install_binary: build install_lib install_bin

install_contrib:
@echo -e "*** Contrib files ***\n"
Expand Down Expand Up @@ -117,6 +117,19 @@ install_bin:
mkdir -p $(PERL5DIR)
mkdir -p $(PERL5DIR)/BackupManager
install -o root -g 0 -m 0644 BackupManager/*.pm $(PERL5DIR)/BackupManager

# Uninstall
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

# Building manpages
man/backup-manager-upload.8:
Expand Down

0 comments on commit 5488b9d

Please sign in to comment.