Added install to Makefile
Updated README
Updated doc for test_spec
diff --git a/tools/munger/Makefile b/tools/munger/Makefile
index 491c451..31f3423 100644
--- a/tools/munger/Makefile
+++ b/tools/munger/Makefile
@@ -12,6 +12,7 @@
PYLIBOF_DIR = ${TOOLS_DIR}/pylibopenflow
TARGET_DIR = ${TOP_DIR}/src/python/oftest
+SETUP_DIR = ${TOP_DIR}/src/python/
# Relative to pyopenflow-pythonize exec location
OF_HEADER = include/openflow.h
@@ -40,6 +41,9 @@
all: ${GEN_FILES}
+install: all
+ (cd ${SETUP_DIR} && sudo python setup.py install)
+
# The core OpenFlow libraries generated from openflow.h
${TARGET_DIR}/cstruct.py: ${CSTRUCT_DEP}
${CSTRUCT_GEN_CMD} > ${CSTRUCT_AUX_INFO}
@@ -76,10 +80,11 @@
@echo " make local: Generate files and put in src/"
@echo
@echo "Targets:"
- @echo " all: Puts generated .py in ${TARGET_DIR}"
- @echo " lint: Puts error report in lint/*.log"
- @echo " doc: Runs doxygen on generated files in ../../doc"
- @echo " clean: Removes generated files"
+ @echo " all: Puts generated .py in ${TARGET_DIR}"
+ @echo " lint: Puts error report in lint/*.log"
+ @echo " doc: Runs doxygen on generated files in ../../doc"
+ @echo " install: Run setup tools for generated python source"
+ @echo " clean: Removes generated files"
@echo
@echo "Debug info:"
@echo