Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8535 - (hide annotations) (download)
Mon Feb 8 12:21:03 2016 UTC (8 years, 3 months ago) by niro
File size: 794 byte(s)
-added initial Makefile build system
1 niro 8535 # $Id$
2    
3     include Makefile.inc
4    
5     SUBDIRS = apache include js pics scripts share
6    
7     FILES = help.php import.php index.php loc.php mindterm.jar mindterm.php \
8     monitor.php openclose_ajax.js openclose.php reboot.php show.php \
9     vncviewer.jar vncviewer.php wake_on_lan.php
10    
11     INSTALLDIRS = $(SUBDIRS:%=install-%)
12     CLEANDIRS = $(SUBDIRS:%=clean-%)
13    
14     all: $(SUBDIRS)
15    
16     install: $(INSTALLDIRS) all
17     $(INSTALL) -d $(DESTDIR)/$(ALX_WEB_INSTALL_DIR)
18     $(INSTALL) -m0644 $(FILES) $(DESTDIR)/${ALX_WEB_INSTALL_DIR}
19     $(INSTALL) -m0644 VERSION $(DESTDIR)/${ALX_WEB_INSTALL_DIR}
20    
21     clean: $(CLEANDIRS)
22    
23     $(SUBDIRS):
24     $(MAKE) -C $@
25    
26     $(INSTALLDIRS):
27     $(MAKE) -C $(@:install-%=%) install
28    
29     $(CLEANDIRS):
30     $(MAKE) -C $(@:clean-%=%) clean
31    
32     .PHONY: $(SUBDIRS)
33     .PHONY: $(INSTALLDIRS)
34     .PHONY: $(CLEANDIRS)
35     .PHONY: all install clean