Skip to content
Snippets Groups Projects
Commit f22d1ee8 authored by Lorenzo Pivetta's avatar Lorenzo Pivetta
Browse files

Update Makefile

parent b887530f
No related branches found
No related tags found
No related merge requests found
NAME_SRV=cmm NAME = cmm-srv
MAIN = Cmm.py
DIRNAME = $(NAME:-srv=)
PY_FILES += $(wildcard src/*.py) PY_FILES += $(wildcard src/*.py)
default: bin/${NAME_SRV} ${PY_FILES} default: bin ${PY_FILES}
@cp ${PY_FILES} bin/${NAME_SRV} @cp ${PY_FILES} bin/${DIRNAME}
@echo "#!/bin/bash\nexec ${DIRNAME}/${MAIN}" > bin/${NAME}
@chmod +x bin/${NAME} bin/${DIRNAME}/${MAIN}
bin/${NAME_SRV}: bin:
@test -d $@ || mkdirhier $@ @test -d $@ || mkdir -p $@/${DIRNAME}
clean: clean:
@rm -fr bin/ src/*~ @rm -fr bin/ src/*~
......
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