Commit 15edcaaa authored by Andrey Filippov's avatar Andrey Filippov

modified project setup

parent d5ba77fb
# Runs 'make', 'make install', and 'make clean' in specified subdirectories # Runs 'make', 'make install', and 'make clean' in specified subdirectories
SUBDIRS := src/php_top src/python_tests src/debugfs-webgui # src1 SUBDIRS := src/php_top src/python_tests src/debugfs-webgui # src1
INSTALLDIRS = $(SUBDIRS:%=install-%) INSTALLDIRS = $(SUBDIRS:%=install-%)
...@@ -13,7 +12,7 @@ $(SUBDIRS): ...@@ -13,7 +12,7 @@ $(SUBDIRS):
$(MAKE) -C $@ $(MAKE) -C $@
install: $(INSTALLDIRS) install: $(INSTALLDIRS)
@echo "make install top" echo "make install top"
$(INSTALLDIRS): $(INSTALLDIRS):
$(MAKE) -C $(@:install-%=%) install $(MAKE) -C $(@:install-%=%) install
......
...@@ -17,8 +17,17 @@ ...@@ -17,8 +17,17 @@
<arguments> <arguments>
<dictionary> <dictionary>
<key>LaunchConfigHandle</key> <key>LaunchConfigHandle</key>
<value>&lt;project&gt;/.externalToolBuilders/SCP to target.launch</value> <value>&lt;project&gt;/.externalToolBuilders/SCP web-393 to target.launch</value>
</dictionary> </dictionary>
<dictionary>
<key>incclean</key>
<value>true</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
<name>org.python.pydev.PyDevBuilder</name>
<arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
</buildSpec> </buildSpec>
...@@ -27,5 +36,6 @@ ...@@ -27,5 +36,6 @@
<nature>org.eclipse.cdt.core.ccnature</nature> <nature>org.eclipse.cdt.core.ccnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
<nature>org.python.pydev.pythonNature</nature>
</natures> </natures>
</projectDescription> </projectDescription>
DOCUMENTROOT=www/pages DOCUMENTROOT=/www/pages
OWN = -o root -g root OWN = -o root -g root
INSTDOCS = 0644 INSTDOCS = 0644
INSTALL = install #INSTALL = install
DOCS= favicon.ico \ DOCS= favicon.ico \
robots.txt robots.txt
CONFS= autocampars.xml CONFS= autocampars.xml
SYSCONFDIR = etc SYSCONFDIR = /etc
CONFDIR = $(SYSCONFDIR)/elphel393 CONFDIR = $(SYSCONFDIR)/elphel393
PHP_SCRIPTS=camvars.php \ PHP_SCRIPTS=camvars.php \
...@@ -22,14 +22,14 @@ all: ...@@ -22,14 +22,14 @@ all:
install: install:
@echo "make install in src" @echo "make install in src"
$(INSTALL) $(OWN) -d $(DESTDIR)/$(DOCUMENTROOT) $(INSTALL) $(OWN) -d $(DESTDIR)$(DOCUMENTROOT)
$(INSTALL) $(OWN) -m $(INSTDOCS) $(DOCS) $(DESTDIR)/$(DOCUMENTROOT) $(INSTALL) $(OWN) -m $(INSTDOCS) $(DOCS) $(DESTDIR)$(DOCUMENTROOT)
$(INSTALL) $(OWN) -m $(INSTDOCS) $(PHP_SCRIPTS) $(DESTDIR)/$(DOCUMENTROOT) $(INSTALL) $(OWN) -m $(INSTDOCS) $(PHP_SCRIPTS) $(DESTDIR)$(DOCUMENTROOT)
$(INSTALL) $(OWN) -d $(DESTDIR)/$(SYSCONFDIR) $(INSTALL) $(OWN) -d $(DESTDIR)$(SYSCONFDIR)
$(INSTALL) $(OWN) -d $(DESTDIR)/$(CONFDIR) $(INSTALL) $(OWN) -d $(DESTDIR)$(CONFDIR)
$(INSTALL) $(OWN) -m $(INSTDOCS) -T autocampars.xml $(DESTDIR)/$(CONFDIR)/autocampars0.xml $(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)/autocampars1.xml
$(INSTALL) $(OWN) -m $(INSTDOCS) -T autocampars.xml $(DESTDIR)/$(CONFDIR)/autocampars2.xml $(INSTALL) $(OWN) -m $(INSTDOCS) -T autocampars.xml $(DESTDIR)$(CONFDIR)/autocampars2.xml
$(INSTALL) $(OWN) -m $(INSTDOCS) -T autocampars.xml $(DESTDIR)/$(CONFDIR)/autocampars3.xml $(INSTALL) $(OWN) -m $(INSTDOCS) -T autocampars.xml $(DESTDIR)$(CONFDIR)/autocampars3.xml
clean: clean:
@echo "make clean in src" @echo "make clean in src"
PYTHONROOT=$(DESTDIR)/usr/local/bin PYTHONROOT=$(DESTDIR)/usr/local/bin
OWN = -o root -g root OWN = -o root -g root
INSTPYTHON = 0755 INSTPYTHON = 0755
INSTALL = install #INSTALL = install
PYTHON_SCRIPTS = tests.py PYTHON_SCRIPTS = tests.py
all: all:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment