Makefile 1.57 KB
Newer Older
1
DOCUMENTROOT=/www/pages
2
INCLUDES=$(DOCUMENTROOT)/include
3 4
OWN = -o root -g root
INSTDOCS = 0644
5
#INSTALL = install
6 7
DOCS=       favicon.ico \
            robots.txt
8
#CONFS=      autocampars.xml
9
SYSCONFDIR   = /etc
10
CONFDIR      = $(SYSCONFDIR)/elphel393
11

12 13
PHP_SCRIPTS=i2c.php \
            camvars.php \
14 15 16 17
            ccam.php \
            diag_utils.php \
            framepars.php \
            parsedit.php \
Andrey Filippov's avatar
Andrey Filippov committed
18
            phpinfo.php \
19
            raw.php \
20
            snapfull.php \
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
21
            test_sensors.php \
22 23
            tuneseq.php \
            utils.php
24

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
25 26
PHPINCLUDES=i2c_include.php \
            show_source_include.php \
27
            elphel_functions_include.php
28

29 30
all:
	@echo "make all in src"
31 32
	@echo "REMOTE_IP =$(REMOTE_IP)"
	@echo "REMOTE_USER =$(REMOTE_USER)"
33 34 35

install:
	@echo "make install in src"
36
	$(INSTALL) $(OWN) -d $(DESTDIR)$(DOCUMENTROOT)
37
	$(INSTALL) $(OWN) -d $(DESTDIR)$(INCLUDES)
38 39
	$(INSTALL) $(OWN) -m $(INSTDOCS) $(DOCS) $(DESTDIR)$(DOCUMENTROOT)
	$(INSTALL) $(OWN) -m $(INSTDOCS) $(PHP_SCRIPTS) $(DESTDIR)$(DOCUMENTROOT)
40
	$(INSTALL) $(OWN) -m $(INSTDOCS) $(PHPINCLUDES) $(DESTDIR)$(INCLUDES)
41 42
	$(INSTALL) $(OWN) -d $(DESTDIR)$(SYSCONFDIR)
	$(INSTALL) $(OWN) -d $(DESTDIR)$(CONFDIR)
43

44 45 46 47
#	$(INSTALL) $(OWN) -m $(INSTDOCS) -T autocampars.xml $(DESTDIR)$(CONFDIR)/autocampars0.xml
#	$(INSTALL) $(OWN) -m $(INSTDOCS) -T autocampars.xml $(DESTDIR)$(CONFDIR)/autocampars1.xml
#	$(INSTALL) $(OWN) -m $(INSTDOCS) -T autocampars.xml $(DESTDIR)$(CONFDIR)/autocampars2.xml
#	$(INSTALL) $(OWN) -m $(INSTDOCS) -T autocampars.xml $(DESTDIR)$(CONFDIR)/autocampars3.xml
48 49
clean:
	@echo "make clean in src"