-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (27 loc) · 995 Bytes
/
Makefile
File metadata and controls
33 lines (27 loc) · 995 Bytes
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
#!/usr/bin/make -f
package = $(shell grep ^Name: *.spec | awk '{print $$2}')
version = $(shell grep ^Version: *.spec | awk '{print $$2}')
all:
install:
install -D -m755 libexec/virtualmaster-firstboot \
${DESTDIR}/usr/libexec/virtualmaster-firstboot
install -D -m755 sbin/init.vmin \
${DESTDIR}/sbin/init.vmin
install -D -m644 tpl/hosts.tpl \
${DESTDIR}/usr/share/virtualmaster/hosts.tpl
install -D -m644 tpl/ifcfg.tpl \
${DESTDIR}/usr/share/virtualmaster/ifcfg.tpl
install -D -m644 tpl/interfaces.tpl \
${DESTDIR}/usr/share/virtualmaster/interfaces.tpl
install -D -m644 tpl/network.tpl \
${DESTDIR}/usr/share/virtualmaster/network.tpl
install -D -m644 tpl/resolv.tpl \
${DESTDIR}/usr/share/virtualmaster/resolv.tpl
install -D -m644 doc/virtualmaster.cfg.sample \
${DESTDIR}/usr/share/doc/${package}/virtualmaster.cfg.sample
clean:
dist:
tar -cvpzf "../${package}-${version}.tar.gz" \
--transform="s#.*#${package}-${version}/\0#" \
--show-stored-names *
# EOF