Browse Source

+ adding python dependencies everywhere
+ adding clean targets to Makefiles to remove autogenerated files

Stasik0 11 years ago
parent
commit
2c116f803e
4 changed files with 9 additions and 2 deletions
  1. 1 1
      .travis.yml
  2. 1 1
      README.md
  3. 1 0
      configure.ac
  4. 6 0
      tool/Makefile.am

+ 1 - 1
.travis.yml

@@ -3,7 +3,7 @@ notifications:
   email: false
 before_install:
  - sudo apt-get update -qq
- - sudo apt-get install -qq build-essential subversion git autoconf libtool texinfo
+ - sudo apt-get install -qq build-essential subversion git autoconf libtool texinfo python-lxml
  - svn checkout svn://svn.code.sf.net/p/check/code/trunk check-code
  - cd check-code
  - autoreconf --install

+ 1 - 1
README.md

@@ -9,7 +9,7 @@ An open-source communication stack implementation of OPC UA (OPC Unified Archite
 ### Ubuntu
 ##### Getting gcc toolchain:
 ```bash
-sudo apt-get install build-essential subversion git autoconf libtool texinfo
+sudo apt-get install build-essential subversion git autoconf libtool texinfo python-lxml
 ```
 ##### Getting and installing *check* as unit test framework (http://check.sourceforge.net/):
 ```bash

+ 1 - 0
configure.ac

@@ -12,6 +12,7 @@ AC_PROG_MAKE_SET
 if test -z $CFLAGS; then
     CFLAGS='-g'
 fi
+AM_PATH_PYTHON
 AC_PROG_CC
 AC_PROG_LN_S
 AM_PROG_CC_C_O

+ 6 - 0
tool/Makefile.am

@@ -9,6 +9,12 @@ opcua.c opcua.h: Opc.Ua.Types.bsd generate_builtin.py
 opcua_namespace_0.c opcua_namespace_0.h: NodeIds.csv generate_namespace.py 
 	python generate_namespace.py NodeIds.csv opcua_namespace_0
 
+PHONY: clean-autogenerated
+clean-autogenerated:
+	rm -rf opcua.c opcua.h
+	rm -rf opcua_namespace_0.c opcua_namespace_0.h
+
+clean-local: clean-autogenerated
 
 #optimization levels depending on debug
 if DEBUG