Annotation of /mcore-src/trunk/mcore-tools/src/modules/Makefile
Parent Directory | Revision Log
Revision 2211 -
(hide annotations)
(download)
Fri Jan 10 16:35:37 2014 UTC (10 years, 8 months ago) by niro
File size: 705 byte(s)
Fri Jan 10 16:35:37 2014 UTC (10 years, 8 months ago) by niro
File size: 705 byte(s)
-provide a Makefile for modules
1 | niro | 2211 | include ../../Makefile.inc |
2 | |||
3 | SUBDIRS = basic-input basic-system basic-video citrix fluxbox grub2 \ | ||
4 | hwinfo idesk lprng mage network tigervnc | ||
5 | |||
6 | ifeq ($(SYSTEMINIT),systemd) | ||
7 | SUBDIRS += systemd | ||
8 | else | ||
9 | SUBDIRS += sysvinit | ||
10 | endif | ||
11 | |||
12 | ifeq ($(SPLASH),plymouth) | ||
13 | SUBDIRS += plymouth | ||
14 | else | ||
15 | SUBDIRS += fbsplash | ||
16 | endif | ||
17 | |||
18 | INSTALLDIRS = $(SUBDIRS:%=install-%) | ||
19 | CLEANDIRS = $(SUBDIRS:%=clean-%) | ||
20 | |||
21 | $(SUBDIRS): | ||
22 | $(MAKE) -C $@ | ||
23 | |||
24 | $(INSTALLDIRS): | ||
25 | $(MAKE) -C $(@:install-%=%) install | ||
26 | |||
27 | $(CLEANDIRS): | ||
28 | $(MAKE) -C $(@:clean-%=%) clean | ||
29 | |||
30 | subdirs: $(SUBDIRS) | ||
31 | |||
32 | all: $(SUBDIRS) | ||
33 | |||
34 | install: $(INSTALLDIRS) all | ||
35 | |||
36 | clean: $(CLEANDIRS) | ||
37 | |||
38 | .PHONY: subdirs $(SUBDIRS) | ||
39 | .PHONY: subdirs $(INSTALLDIRS) | ||
40 | .PHONY: subdirs $(CLEANDIRS) | ||
41 | .PHONY: all install clean |