]> gitweb.michael.orlitzky.com - dead/census-tools.git/blobdiff - lib/makefile
Update the README and makefile for env-js.
[dead/census-tools.git] / lib / makefile
index 301f2a25634ef652fc94c8c845be7d8c5f8d3f3e..dd671139352f1f908563ab6242ca1798800b9672 100644 (file)
@@ -3,7 +3,9 @@ LP_SOLVE_LIB_URL=http://downloads.sourceforge.net/project/lpsolve/lpsolve/5.5.0.
 LP_SOLVE_PYTHON_URL=http://downloads.sourceforge.net/project/lpsolve/lpsolve/5.5.0.15/lp_solve_5.5.0.15_Python_source.tar.gz
 
 
-all: lp_solve shapely
+.PHONY : env-js
+
+all: lp_solve shapely env-js
 
 
 clean:
@@ -49,9 +51,7 @@ LFLAGS_PATCH = sed -i 's/^LFLAGS = -L -l$$/LFLAGS = -L/'
        cd lp_solve_5.5/extra/Python;                                 \
        sed -i 's~lpsolve55/bin/\(ux\|win\)32~../lp_solve~' setup.py; \
        python setup.py build;                                        \
-       mv build/lib.linux-*/* ../../../lp_solve/;
-# Change the problem type from 'maximize' to 'minimize'.
-       sed -i 's/set_maxim/set_minim/' lp_solve/lp_solve.py
+       mv build/lib.linux-*/*.so ../../../lp_solve/;
 
 
 lp_solve_lib_src:
@@ -68,3 +68,8 @@ lp_solve_python_src: lp_solve_lib_src
                tar -xvzf lp_solve_python.tar.gz;                      \
                rm lp_solve_python.tar.gz;                             \
        fi;
+
+
+# A phony target, always run.
+env-js:
+       cd env-js && ant concat