diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..1a331a4a223392409337e3490496182bebac86e4 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +NAME = fbelt-srv +DIRNAME = $(NAME:-srv=) +MAIN = $(shell basename `find src/ -iname $(NAME:-srv=.py)`) +PY_FILES += $(wildcard src/*.py) + +default: bin ${PY_FILES} + @cp ${PY_FILES} bin/${DIRNAME} + @echo "#!/bin/bash\nexec ${DIRNAME}/${MAIN}" > bin/${NAME} + @chmod +x bin/${NAME} bin/${DIRNAME}/${MAIN} + +bin: + @test -d $@ || mkdir -p $@/${DIRNAME} + +clean: + @rm -fr bin/ src/*~ + +.PHONY: clean