INSTALLDIR = ${PREFIX}/share/usb/firmware HEXFILES != echo *.hex FILES = ${HEXFILES} README install: .if (!exists(${INSTALLDIR})) ${MKDIR} ${INSTALLDIR} .endif .for i in ${FILES} .if (!exists(${INSTALLDIR}/$i)) || ${FORCE} == "YES" ${INSTALL_DATA} $i ${INSTALLDIR}/ .else # Woops, already exists -> Fail. @echo $i already exists \(use FORCE=YES to overwrite existing files there\) /usr/bin/false .endif .endfor .include