Annotation of /trunk/qemu-networking/Makefile
Parent Directory | Revision Log
Revision 1825 -
(hide annotations)
(download)
Sat Jun 9 10:46:59 2012 UTC (12 years, 4 months ago) by niro
File size: 1176 byte(s)
Sat Jun 9 10:46:59 2012 UTC (12 years, 4 months ago) by niro
File size: 1176 byte(s)
-ignore check target
1 | niro | 1822 | # qemu-networking |
2 | # $Id$ | ||
3 | |||
4 | VERSION = $(shell cat VERSION) | ||
5 | |||
6 | confddir = /etc/conf.d | ||
7 | datadir = /usr/share | ||
8 | docdir = $(datadir)/doc/qemu-networking-$(VERSION) | ||
9 | systemddir = /usr/lib/systemd | ||
10 | systemdhelperdir = $(systemddir) | ||
11 | systemdunitdir = $(systemddir)/system | ||
12 | |||
13 | COMPRESS = gzip -9 -c | ||
14 | |||
15 | all: qemu-networking qemu-networking.service | ||
16 | |||
17 | qemu-networking: | ||
18 | sed 's:@@confddir@@:$(confddir):g' qemu-networking.in > qemu-networking | ||
19 | qemu-networking.service: | ||
20 | sed 's:@@systemdhelperdir@@:$(systemdhelperdir):g' qemu-networking.service.in > qemu-networking.service | ||
21 | |||
22 | clean: | ||
23 | for i in qemu-networking qemu-networking.service; do \ | ||
24 | if [ -f $$i ]; then rm $$i; fi \ | ||
25 | done | ||
26 | |||
27 | install: | ||
28 | install -d $(DESTDIR)/$(confddir) | ||
29 | install -m0644 qemu-networking.conf $(DESTDIR)/$(confddir) | ||
30 | install -d $(DESTDIR)/$(systemdhelperdir) | ||
31 | install -m0755 qemu-networking $(DESTDIR)/$(systemdhelperdir) | ||
32 | install -d $(DESTDIR)/$(systemdunitdir) | ||
33 | install -m0644 qemu-networking.service $(DESTDIR)/$(systemdunitdir) | ||
34 | install -d $(DESTDIR)/$(docdir) | ||
35 | $(COMPRESS) VERSION > $(DESTDIR)/$(docdir)/VERSION.gz | ||
36 | if [ -f ChangeLog ]; then $(COMPRESS) ChangeLog > $(DESTDIR)/$(docdir)/ChangeLog.gz; fi | ||
37 | |||
38 | niro | 1825 | .PHONY: install clean check |