Makefile 392B

12345678910111213141516171819
  1. src = src
  2. dst = dist
  3. skins := $(shell find ${src} -mindepth 1 -maxdepth 1 -type d -printf '%f\n')
  4. ${skins}:
  5. mkdir -p ${dst}/${@}
  6. cp ${src}/${@}/header.html ${dst}/${@}/header.txt
  7. cp ${src}/${@}/footer.html ${dst}/${@}/footer.txt
  8. cp ${src}/${@}/style.css ${dst}/${@}/css.txt
  9. cp ${src}/${@}/details.txt ${dst}/${@}/details.txt
  10. build: ${skins}
  11. rebuild: clean build
  12. clean:
  13. rm -rf dist