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

Add Makefile for inau

parent 9d5f5401
No related branches found
Tags 1.0.0
No related merge requests found
Makefile 0 → 100644
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
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