Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12867 - (hide annotations) (download)
Tue Nov 13 08:46:51 2018 UTC (5 years, 5 months ago) by niro
File size: 862 byte(s)
-use sudo to fix some permission issues with wol
1 niro 8535 # $Id$
2    
3     include Makefile.inc
4    
5 niro 12867 SUBDIRS = apache include js pics scripts share sudo
6 niro 8535
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 niro 8549 $(INSTALL) -m0644 ChangeLog $(DESTDIR)/${ALX_WEB_INSTALL_DIR}
21 niro 8535
22     clean: $(CLEANDIRS)
23    
24     $(SUBDIRS):
25     $(MAKE) -C $@
26    
27     $(INSTALLDIRS):
28     $(MAKE) -C $(@:install-%=%) install
29    
30     $(CLEANDIRS):
31     $(MAKE) -C $(@:clean-%=%) clean
32    
33     .PHONY: $(SUBDIRS)
34     .PHONY: $(INSTALLDIRS)
35     .PHONY: $(CLEANDIRS)
36     .PHONY: all install clean