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

Update Makefile

parent a06ae165
NAME_SRV=felmaster
NAME = felmaster-srv
MAIN = FelMaster.py
DIRNAME = $(NAME:-srv=)
PY_FILES += $(wildcard src/*.py)
default: bin/${NAME_SRV} ${PY_FILES}
@cp ${PY_FILES} bin/${NAME_SRV}
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/${NAME_SRV}:
@test -d $@ || mkdirhier $@
bin:
@test -d $@ || mkdir -p $@/${DIRNAME}
clean:
@rm -fr bin/ src/*~
......
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