aboutsummaryrefslogtreecommitdiffstats
path: root/src/emc/usr_intf/qtplasmac/Submakefile
blob: 78ebb5e017716b50861b65f536e9a08faabb05b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
QTPLASMAC_PY := qtplasmac-materials.py qtplasmac-plasmac2qt.py qtplasmac-cfg2prefs.py \
	qtplasmac_gcode.py pmx485-test.py
QTPLASMAC_PYBIN := $(patsubst %.py,../bin/%,$(QTPLASMAC_PY))

PYTARGETS += $(QTPLASMAC_PYBIN)
$(QTPLASMAC_PYBIN): ../bin/%: emc/usr_intf/qtplasmac/%.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 $@

PYTARGETS += ../configs/sim/qtplasmac/M190
../configs/sim/qtplasmac/M190: emc/usr_intf/qtplasmac/M190
	@$(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 $@
bues.ch cgit interface