blob: b95eb2960d6228067053505d7e02318b55a6fdfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
INCLUDES += emc/ini
$(patsubst ./emc/ini/%,../include/%,$(wildcard ./emc/ini/*.h)): ../include/%.h: ./emc/ini/%.h
cp $^ $@
$(patsubst ./emc/ini/%,../include/%,$(wildcard ./emc/ini/*.hh)): ../include/%.hh: ./emc/ini/%.hh
cp $^ $@
../bin/update_ini: emc/ini/update_ini.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 += ../bin/update_ini
|