install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir
install-autostart-%:
- @rm -f /etc/rc0.d/K20bacula-$*
- @rm -f /etc/rc1.d/S99bacula-$*
- @rm -f /etc/rc2.d/S99bacula-$*
- @$(INSTALL_PROGRAM) -m 744 bacula-$* /etc/init.d/bacula-$*
+ @rm -f $(DESTDIR)/etc/rc0.d/K20bacula-$*
+ @rm -f $(DESTDIR)/etc/rc1.d/S99bacula-$*
+ @rm -f $(DESTDIR)/etc/rc2.d/S99bacula-$*
+ @$(INSTALL_PROGRAM) -m 744 bacula-$* $(DESTDIR)/etc/init.d/bacula-$*
# set symlinks for script at startup and shutdown
- @ln -f -s /etc/init.d/bacula-$* /etc/rc0.d/K20bacula-$*
- @ln -f -s /etc/init.d/bacula-$* /etc/rc1.d/S99bacula-$*
- @ln -f -s /etc/init.d/bacula-$* /etc/rc2.d/S99bacula-$*
+ @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc0.d/K20bacula-$*
+ @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc1.d/S99bacula-$*
+ @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc2.d/S99bacula-$*
uninstall: uninstall-autostart
uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
uninstall-autostart-%:
- @rm -f /etc/rc0.d/K20bacula-$*
- @rm -f /etc/rc1.d/S99bacula-$*
- @rm -f /etc/rc2.d/S99bacula-$*
- @rm -f /etc/init.d/bacula-$*
+ @rm -f $(DESTDIR)/etc/rc0.d/K20bacula-$*
+ @rm -f $(DESTDIR)/etc/rc1.d/S99bacula-$*
+ @rm -f $(DESTDIR)/etc/rc2.d/S99bacula-$*
+ @rm -f $(DESTDIR)/etc/init.d/bacula-$*
clean:
@rm -f 1 2 3