forked from larsks/systemd-usb-gadget
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
28 lines (22 loc) · 563 Bytes
/
Makefile
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
sbindir=/usr/sbin
sysconfdir=/etc
unitdir=$(sysconfdir)/systemd/system
UNITS = \
usbipd.service \
usbip-device@.service
SCRIPTS = \
configure-usbip-device.sh \
remove-usbip-device.sh
all:
install: install-scripts install-units
mkdir -p $(DESTDIR)$(sysconfdir)/usbip-devices
install-scripts: $(SCRIPTS)
mkdir -p $(DESTDIR)$(sbindir)
for s in $(SCRIPTS); do \
install -m 755 $$s $(DESTDIR)$(sbindir)/$${s%.sh}; \
done
install-units: $(UNITS)
mkdir -p $(DESTDIR)$(unitdir)
for u in $(UNITS); do \
install -m 600 $$u $(DESTDIR)$(unitdir); \
done