Annotation of /mcore-src/trunk/mcore-tools/src/modules/Makefile
Parent Directory | Revision Log
Revision 2724 -
(hide annotations)
(download)
Mon Dec 21 09:31:33 2015 UTC (8 years, 9 months ago) by niro
File size: 1279 byte(s)
Mon Dec 21 09:31:33 2015 UTC (8 years, 9 months ago) by niro
File size: 1279 byte(s)
-reworked Makefiles that they really support install-common, install-client and install install-control targets
1 | niro | 2211 | include ../../Makefile.inc |
2 | |||
3 | niro | 2650 | SUBDIRS = basic-input basic-kernel basic-system basic-version basic-video \ |
4 | niro | 2720 | citrix fluxbox grub2 hwinfo idesk lprng mage network tigervnc \ |
5 | pxeconfig helpdesk | ||
6 | niro | 2211 | |
7 | ifeq ($(SYSTEMINIT),systemd) | ||
8 | SUBDIRS += systemd | ||
9 | else | ||
10 | SUBDIRS += sysvinit | ||
11 | endif | ||
12 | |||
13 | ifeq ($(SPLASH),plymouth) | ||
14 | SUBDIRS += plymouth | ||
15 | else | ||
16 | SUBDIRS += fbsplash | ||
17 | endif | ||
18 | |||
19 | niro | 2724 | INSTALL_COMMONDIRS = $(SUBDIRS:%=install-common-%) |
20 | INSTALL_CLIENTDIRS = $(SUBDIRS:%=install-client-%) | ||
21 | INSTALL_CONTROLDIRS = $(SUBDIRS:%=install-control-%) | ||
22 | niro | 2211 | CLEANDIRS = $(SUBDIRS:%=clean-%) |
23 | |||
24 | niro | 2233 | all: $(SUBDIRS) |
25 | |||
26 | niro | 2724 | install: install-common install-client install-control all |
27 | niro | 2233 | |
28 | niro | 2724 | install-common: all |
29 | |||
30 | install-client: $(INSTALL_CLIENTDIRS) all | ||
31 | |||
32 | install-control: $(INSTALL_CONTROLDIRS) all | ||
33 | |||
34 | niro | 2233 | clean: $(CLEANDIRS) |
35 | |||
36 | niro | 2211 | $(SUBDIRS): |
37 | $(MAKE) -C $@ | ||
38 | |||
39 | niro | 2724 | $(INSTALL_COMMONDIRS): |
40 | $(MAKE) -C $(@:install-common-%=%) install-common | ||
41 | niro | 2211 | |
42 | niro | 2724 | $(INSTALL_CLIENTDIRS): |
43 | $(MAKE) -C $(@:install-client-%=%) install-client | ||
44 | |||
45 | $(INSTALL_CONTROLDIRS): | ||
46 | $(MAKE) -C $(@:install-control-%=%) install-control | ||
47 | |||
48 | niro | 2211 | $(CLEANDIRS): |
49 | $(MAKE) -C $(@:clean-%=%) clean | ||
50 | |||
51 | niro | 2233 | .PHONY: $(SUBDIRS) |
52 | niro | 2724 | .PHONY: $(INSTALL_COMMONDIRS) |
53 | .PHONY: $(INSTALL_CLIENTDIRS) | ||
54 | .PHONY: $(INSTALL_CONTROLDIRS) | ||
55 | niro | 2233 | .PHONY: $(CLEANDIRS) |
56 | niro | 2724 | .PHONY: install-common |
57 | .PHONY: install-client | ||
58 | .PHONY: install-control | ||
59 | niro | 2211 | .PHONY: all install clean |