forked from bkr/ubuntu-ec2net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (28 loc) · 870 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
29
30
31
DESTDIR ?= /
.PHONY: dist
dist:
mkdir -p build/etc/udev/rules.d/
mkdir -p build/etc/dhcp/dhclient-exit-hooks.d/
mkdir -p build/etc/network/
DEST=build make install
chown -R 0:0 build
tar -C build -czf dist.tgz .
.PHONY: modes
modes:
chmod 644 53-ec2-network-interfaces.rules
chmod 644 75-persistent-net-generator.rules
chmod 644 ec2dhcp
chmod 644 ec2net-functions
chmod 755 ec2net.hotplug
chown 0:0 53-ec2-network-interfaces.rules
chown 0:0 75-persistent-net-generator.rules
chown 0:0 ec2dhcp
chown 0:0 ec2net-functions
chown 0:0 ec2net.hotplug
.PHONY: install
install: modes
cp -a 53-ec2-network-interfaces.rules $(DEST)/etc/udev/rules.d/
cp -a 75-persistent-net-generator.rules $(DEST)/etc/udev/rules.d/
cp -a ec2dhcp $(DEST)/etc/dhcp/dhclient-exit-hooks.d/
cp -a ec2net-functions $(DEST)/etc/network/
cp -a ec2net.hotplug $(DEST)/etc/network/