Annotation of /trunk/qemu-networking/Makefile
Parent Directory
|
Revision Log
Revision 2203 -
(hide annotations)
(download)
Mon Oct 14 09:16:12 2013 UTC (10 years, 7 months ago) by niro
File size: 1201 byte(s)
Mon Oct 14 09:16:12 2013 UTC (10 years, 7 months ago) by niro
File size: 1201 byte(s)
-add check target for compat reasons
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 | niro | 1828 | |
20 | niro | 1822 | qemu-networking.service: |
21 | sed 's:@@systemdhelperdir@@:$(systemdhelperdir):g' qemu-networking.service.in > qemu-networking.service | ||
22 | |||
23 | niro | 2203 | check: |
24 | |||
25 | niro | 1822 | clean: |
26 | for i in qemu-networking qemu-networking.service; do \ | ||
27 | if [ -f $$i ]; then rm $$i; fi \ | ||
28 | done | ||
29 | |||
30 | install: | ||
31 | install -d $(DESTDIR)/$(confddir) | ||
32 | niro | 1828 | install -m0644 qemu-networking.conf $(DESTDIR)/$(confddir)/qemu-networking |
33 | niro | 1822 | install -d $(DESTDIR)/$(systemdhelperdir) |
34 | install -m0755 qemu-networking $(DESTDIR)/$(systemdhelperdir) | ||
35 | install -d $(DESTDIR)/$(systemdunitdir) | ||
36 | install -m0644 qemu-networking.service $(DESTDIR)/$(systemdunitdir) | ||
37 | install -d $(DESTDIR)/$(docdir) | ||
38 | $(COMPRESS) VERSION > $(DESTDIR)/$(docdir)/VERSION.gz | ||
39 | if [ -f ChangeLog ]; then $(COMPRESS) ChangeLog > $(DESTDIR)/$(docdir)/ChangeLog.gz; fi | ||
40 | |||
41 | niro | 1825 | .PHONY: install clean check |