INCLUDES += emc/motion $(patsubst ./emc/motion/%,../include/%,$(wildcard ./emc/motion/*.h)): ../include/%.h: ./emc/motion/%.h cp $^ $@ $(patsubst ./emc/motion/%,../include/%,$(wildcard ./emc/motion/*.hh)): ../include/%.hh: ./emc/motion/%.hh cp $^ $@