Skip to content
Snippets Groups Projects

makefile: install scripts to bin instead of sbin, use PREFIX for systemd unit install location

Merged Imported Administrator requested to merge craftyguy/fix_prefix into master
1 unresolved thread
2 files
+ 10
16
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 6
6
install:
install -Dm 755 src/swclock-offset-boot.sh \
$(DESTDIR)$(PREFIX)/sbin/swclock-offset-boot
$(DESTDIR)/usr/bin/swclock-offset-boot
install -Dm 755 src/swclock-offset-shutdown.sh \
$(DESTDIR)$(PREFIX)/sbin/swclock-offset-shutdown
$(DESTDIR)/usr/bin/swclock-offset-shutdown
install_openrc:
# openrc:
install -Dm 755 openrc/swclock-offset-boot.initd \
$(DESTDIR)/etc/init.d/swclock-offset-boot
install -Dm 755 openrc/swclock-offset-shutdown.initd \
$(DESTDIR)/etc/init.d/swclock-offset-shutdown
install_systemd:
# systemd
install -Dm 644 systemd/swclock-offset-boot.service \
$(DESTDIR)/lib/systemd/system/swclock-offset-boot.service
$(DESTDIR)/usr/lib/systemd/system/swclock-offset-boot.service
install -Dm 644 systemd/swclock-offset-shutdown.service \
$(DESTDIR)/lib/systemd/system/swclock-offset-shutdown.service
$(DESTDIR)/usr/lib/systemd/system/swclock-offset-shutdown.service
Loading