Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2233 - (show annotations) (download)
Sat Jan 11 00:02:32 2014 UTC (10 years, 4 months ago) by niro
File size: 657 byte(s)
-refactored Makefile
1 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 all: $(SUBDIRS)
22
23 install: $(INSTALLDIRS)
24
25 clean: $(CLEANDIRS)
26
27 $(SUBDIRS):
28 $(MAKE) -C $@
29
30 $(INSTALLDIRS):
31 $(MAKE) -C $(@:install-%=%) install
32
33 $(CLEANDIRS):
34 $(MAKE) -C $(@:clean-%=%) clean
35
36
37 .PHONY: $(SUBDIRS)
38 .PHONY: $(INSTALLDIRS)
39 .PHONY: $(CLEANDIRS)
40 .PHONY: all install clean