2012-10-15 21:16:28 +08:00
|
|
|
if ADD_SYSTEMD
|
|
|
|
EXTRA_DIST = udevil.conf devmon devmon@.service
|
|
|
|
else
|
2012-05-23 01:52:47 +08:00
|
|
|
EXTRA_DIST = udevil.conf
|
2012-10-15 21:16:28 +08:00
|
|
|
endif
|
2012-05-23 01:52:47 +08:00
|
|
|
|
|
|
|
install-data-hook:
|
2013-11-11 01:36:59 +08:00
|
|
|
test -d $(DESTDIR)$(sysconfdir)/udevil || mkdir -p -- \
|
|
|
|
$(DESTDIR)$(sysconfdir)/udevil
|
|
|
|
test -f $(DESTDIR)$(sysconfdir)/udevil/udevil.conf || $(INSTALL_DATA) \
|
|
|
|
$(srcdir)/udevil.conf \
|
|
|
|
$(DESTDIR)$(sysconfdir)/udevil/udevil.conf
|
2012-10-15 21:16:28 +08:00
|
|
|
if ADD_SYSTEMD
|
2013-11-11 01:36:59 +08:00
|
|
|
test -d $(DESTDIR)$(sysconfdir)/conf.d || mkdir -p -- \
|
|
|
|
$(DESTDIR)$(sysconfdir)/conf.d
|
|
|
|
test -f $(DESTDIR)$(sysconfdir)/conf.d/devmon || $(INSTALL_DATA) \
|
|
|
|
$(srcdir)/systemd/devmon \
|
|
|
|
$(DESTDIR)$(sysconfdir)/conf.d/devmon
|
2012-10-15 21:16:28 +08:00
|
|
|
test -d $(DESTDIR)/$(libdir)/systemd/system || \
|
|
|
|
mkdir -p -- $(DESTDIR)/$(libdir)/systemd/system
|
|
|
|
$(INSTALL_DATA) $(srcdir)/systemd/devmon@.service \
|
|
|
|
$(DESTDIR)/$(libdir)/systemd/system/devmon@.service
|
|
|
|
endif
|