Magellan Linux

Contents of /mcore-src/trunk/mcore-tools/src/modules/pxeconfig/systemd/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2724 - (show annotations) (download)
Mon Dec 21 09:31:33 2015 UTC (8 years, 4 months ago) by niro
File size: 938 byte(s)
-reworked Makefiles that they really support install-common, install-client and install install-control targets
1
2 include ../../../../Makefile.inc
3
4 SYSTEMDSYSTEMUNITDIR = $(shell $(PKGCONFIG) --variable=systemdsystemunitdir systemd)
5
6 FILES = mcore-pxeconfig.service
7
8 all: $(FILES)
9
10 install: install-common install-client install-control all
11
12 install-common: install-common-services-systemd
13
14 install-client: install-client-services-systemd
15
16 install-control: install-control-services-systemd
17
18 install-common-services-systemd: all
19
20 install-client-services-systemd: all
21
22 install-control-services-systemd: all
23 $(INSTALL) -d $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
24 $(INSTALL) -m0644 mcore-pxeconfig.service $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
25 $(INSTALL) -m0644 mcore-pxeconfig.timer $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
26
27 clean:
28 rm -f $(FILES)
29
30 .PHONY: install-common
31 .PHONY: install-client
32 .PHONY: install-control
33 .PHONY: install-common-services-systemd
34 .PHONY: install-client-services-systemd
35 .PHONY: install-control-services-systemd
36 .PHONY: all install clean