forked from martinbernat/libvirt-wakeonlan
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
40 lines (34 loc) · 2.01 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
prefix = $(DESTDIR)@prefix@
srcdir = @srcdir@
INSTALL = @INSTALL@
all: libvirtwol.py
install: all
mkdir -p ${prefix}/share/libvirt-wakeonlan/testing
${INSTALL} ${srcdir}/*.py ${prefix}/share/libvirt-wakeonlan/
${INSTALL} ${srcdir}/testing/* ${prefix}/share/libvirt-wakeonlan/testing/
# gentoo
if [ -f /etc/gentoo-release ] ; then \
mkdir -p $(DESTDIR)/etc/init.d $(DESTDIR)/etc/conf.d; \
${INSTALL} ${srcdir}/init/gentoo/init.d/libvirt-wakeonlan $(DESTDIR)/etc/init.d/libvirt-wakeonlan; \
${INSTALL} ${srcdir}/init/gentoo/conf.d/libvirt-wakeonlan $(DESTDIR)/etc/conf.d/libvirt-wakeonlan; \
fi
# redhat
if [ -f /etc/redhat-release ] ; then \
mkdir -p $(DESTDIR)/etc/init.d $(DESTDIR)/etc/sysconfig; \
${INSTALL} ${srcdir}/init/redhat/init.d/libvirt-wakeonlan $(DESTDIR)/etc/init.d/libvirt-wakeonlan; \
${INSTALL} ${srcdir}/init/redhat/sysconfig/libvirt-wakeonlan $(DESTDIR)/etc/sysconfig/libvirt-wakeonlan; \
fi
# debian
if [ -f /etc/debian_version ] ; then \
mkdir -p $(DESTDIR)/etc/init $(DESTDIR)/etc/default; \
find $(DESTDIR) -type d; \
${INSTALL} ${srcdir}/init/debian/init/libvirt-wakeonlan.conf $(DESTDIR)/etc/init/libvirt-wakeonlan.conf; \
${INSTALL} ${srcdir}/init/debian/default/libvirt-wakeonlan $(DESTDIR)/etc/default/libvirt-wakeonlan; \
${INSTALL} ${srcdir}/init/debian/systemd/libvirt-wakeonlan.service $(DESTDIR)/etc/systemd/system/libvirt-wakeonlan.service; \
fi
# arch
if [ -f /etc/arch-release ] ; then \
mkdir -p ${prefix}/lib/systemd/system $(DESTDIR)/etc/systemd; \
${INSTALL} ${srcdir}/init/arch/systemd/system/libvirt-wakeonlan.service ${prefix}/lib/systemd/system/libvirt-wakeonlan.service; \
${INSTALL} ${srcdir}/init/arch/systemd/libvirt-wakeonlan.conf $(DESTDIR)/etc/systemd/libvirt-wakeonlan.conf; \
fi