Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2724 - (hide annotations) (download)
Mon Dec 21 09:31:33 2015 UTC (8 years, 5 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 niro 2683
2     include ../../../../Makefile.inc
3    
4     SYSTEMDSYSTEMUNITDIR = $(shell $(PKGCONFIG) --variable=systemdsystemunitdir systemd)
5    
6 niro 2684 FILES = mcore-pxeconfig.service
7 niro 2683
8     all: $(FILES)
9    
10 niro 2724 install: install-common install-client install-control all
11 niro 2683
12 niro 2724 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 niro 2683 install-client-services-systemd: all
21    
22     install-control-services-systemd: all
23     $(INSTALL) -d $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
24 niro 2684 $(INSTALL) -m0644 mcore-pxeconfig.service $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
25     $(INSTALL) -m0644 mcore-pxeconfig.timer $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
26 niro 2683
27     clean:
28     rm -f $(FILES)
29    
30 niro 2724 .PHONY: install-common
31     .PHONY: install-client
32     .PHONY: install-control
33     .PHONY: install-common-services-systemd
34 niro 2683 .PHONY: install-client-services-systemd
35     .PHONY: install-control-services-systemd
36     .PHONY: all install clean