Magellan Linux

Annotation of /alx-src/branches/alx-web-070/scripts/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8535 - (hide annotations) (download)
Mon Feb 8 12:21:03 2016 UTC (8 years, 4 months ago) by niro
File size: 409 byte(s)
-added initial Makefile build system
1 niro 8535 include ../Makefile.inc
2    
3     SUBDIRS = cert sql-schema
4    
5     INSTALLDIRS = $(SUBDIRS:%=install-%)
6     CLEANDIRS = $(SUBDIRS:%=clean-%)
7    
8     all: $(SUBDIRS)
9    
10     install: $(INSTALLDIRS) all
11    
12     clean: $(CLEANDIRS)
13    
14     $(SUBDIRS):
15     $(MAKE) -C $@
16    
17     $(INSTALLDIRS):
18     $(MAKE) -C $(@:install-%=%) install
19    
20     $(CLEANDIRS):
21     $(MAKE) -C $(@:clean-%=%) clean
22    
23     .PHONY: $(SUBDIRS)
24     .PHONY: $(INSTALLDIRS)
25     .PHONY: $(CLEANDIRS)
26     .PHONY: all install clean