

VISMACH_PY :=  \
	pumagui.py \
	puma560gui.py \
	lineardelta.py \
	scaragui.py \
	hexagui.py \
	5axisgui.py \
	max5gui.py \
	maho600gui.py \
	hbmgui.py \
	rotarydelta.py \
	melfagui.py \
	millturngui.py \
	xyzac-trt-gui.py \
	xyzbc-trt-gui.py \
	xyzab-tdr-gui.py

VISMACH_PYBIN := $(patsubst %.py,../bin/%,$(VISMACH_PY))
PYTARGETS += $(VISMACH_PYBIN)


$(VISMACH_PYBIN): ../bin/%: hal/user_comps/vismach/%.py
	@$(ECHO) Syntax checking python script $(notdir $@)
	$(Q)$(PYTHON) -m py_compile $<
	$(ECHO) Copying python script $(notdir $@)
	$(Q)(echo '#!$(PYTHON)'; sed '1 { /^#!/d; }' $<) > $@.tmp && chmod +x $@.tmp && mv -f $@.tmp $@

