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:
|
|
|
|
test -d $(DESTDIR)/etc/udevil || mkdir -p -- $(DESTDIR)/etc/udevil
|
|
|
|
test -f $(DESTDIR)/etc/udevil/udevil.conf || $(INSTALL_DATA) \
|
|
|
|
$(srcdir)/udevil.conf $(DESTDIR)/etc/udevil/udevil.conf
|
2012-10-15 21:16:28 +08:00
|
|
|
if ADD_SYSTEMD
|
|
|
|
test -d $(DESTDIR)/etc/conf.d || mkdir -p -- $(DESTDIR)/etc/conf.d
|
|
|
|
test -f $(DESTDIR)/etc/conf.d/devmon || $(INSTALL_DATA) \
|
|
|
|
$(srcdir)/systemd/devmon $(DESTDIR)/etc/conf.d/devmon
|
|
|
|
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
|