Commit fc87c140 authored by Lorenzo Pivetta's avatar Lorenzo Pivetta
Browse files

Fix Makefile

parent e5251106
......@@ -7,8 +7,8 @@ PY_FILES += $(wildcard src/*.py)
default: bin ${PY_FILES}
@cp ${PY_FILES} bin/${DIRNAME}
@ln -s ${DIRNAME}/${MAIN} bin/${NAME}
@chmod +x bin/${DIRNAME}/${MAIN}
@echo "#!/usr/bin/env python\nimport sys\nsys.path.append(sys.path[0]+'/${DIRNAME}')\nfrom ${MODNAME} import main\nif __name__ == '__main__':\n main()\n" > bin/${NAME}
@chmod +x bin/${NAME} bin/${DIRNAME}/${MAIN}
bin:
@test -d $@ || mkdir -p $@/${DIRNAME}
......
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