Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2692 - (hide annotations) (download)
Fri Dec 11 12:59:06 2015 UTC (8 years, 5 months ago) by niro
File size: 973 byte(s)
-fixed ordering
1 niro 2674 include ../../../Makefile.inc
2    
3 niro 2684 SCRIPTS = mcore-pxeconfig mcore-pxeconfig-cron
4 niro 2674
5 niro 2677 TFTP_DIRECTORY = /var/tftpd/pxelinux.cfg
6 niro 2674
7 niro 2692 SCRIPT_SED_LINES += \
8     -e "s:@@TFTP_DIRECTORY@@:$(TFTP_DIRECTORY):g"
9    
10 niro 2683 ifeq ($(SYSTEMINIT),systemd)
11     SUBDIRS += systemd
12     endif
13    
14     INSTALLDIRS = $(SUBDIRS:%=install-%)
15     CLEANDIRS = $(SUBDIRS:%=clean-%)
16    
17     all: $(SCRIPTS) $(SUBDIRS)
18 niro 2674
19 niro 2683 install: install-client install-control all $(INSTALLDIRS)
20 niro 2674
21     install-client: all
22    
23     install-control: all
24 niro 2691 $(INSTALL) -d $(DESTDIR)/$(SBINDIR)
25     $(INSTALL) -m0755 mcore-pxeconfig $(DESTDIR)/$(SBINDIR)
26     $(INSTALL) -m0755 mcore-pxeconfig-cron $(DESTDIR)/$(SBINDIR)
27 niro 2690 $(INSTALL) -d $(DESTDIR)/$(TFTP_DIRECTORY)/lpxelinux-skeleton
28 niro 2674
29 niro 2683 clean: $(CLEANDIRS)
30 niro 2674 rm -f $(SCRIPTS)
31    
32 niro 2683 $(SUBDIRS):
33     $(MAKE) -C $@
34    
35     $(INSTALLDIRS):
36     $(MAKE) -C $(@:install-%=%) install
37    
38     $(CLEANDIRS):
39     $(MAKE) -C $(@:clean-%=%) clean
40    
41 niro 2674 .PHONY: install-client
42     .PHONY: install-control
43     .PHONY: all install clean
44 niro 2683 .PHONY: $(SUBDIRS)
45     .PHONY: $(INSTALLDIRS)
46     .PHONY: $(CLEANDIRS)