Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. all:
  2. make english
  3. sleep .1 ; cd en ; make
  4. make espanol
  5. sleep .1 ; cd es ; make
  6. esperanto:
  7. sh eo.sh && mkdir $$(cat lists/mkdir.txt 's^%l^eo^g')
  8. while read file ; do \
  9. . eo.sh ; \
  10. envsubst < "$$file" > "$$(echo $$file | sed 's/meta/md/' | sed 's^pages^eo/lgn^')" ; \
  11. done < lists/md.txt
  12. cp swx/* eo/
  13. cp -r misc/res eo/lgn/res
  14. sleep .1 ; . eo.sh ; envsubst < misc/swx.conf.meta > eo/swx.conf
  15. sleep .1 ; . eo.sh ; envsubst < misc/Makefile.meta > eo/Makefile
  16. sleep .1 ; . eo.sh ; envsubst < misc/res/js/utctime.js.meta > eo/lgn/res/js/utctime.js
  17. english:
  18. sh en.sh && mkdir $$(cat lists/mkdir.txt | sed 's^%l^en^g')
  19. while read file ; do \
  20. . en.sh ; \
  21. envsubst < "$$file" > "$$(echo $$file | sed 's/meta/md/' | sed 's^pages^en/lgn^')" ; \
  22. done < lists/md.txt
  23. cp swx/* en
  24. cp -r misc/res en/lgn/res
  25. sleep .1 ; . en.sh ; envsubst < misc/swx.conf.meta > en/swx.conf
  26. sleep .1 ; . en.sh ; envsubst < misc/Makefile.meta > en/Makefile
  27. sleep .1 ; . en.sh ; envsubst < misc/res/js/utctime.js.meta > en/lgn/res/js/utctime.js
  28. espanol:
  29. sh es.sh && mkdir $$(cat lists/mkdir.txt| sed 's^%l^es^g')
  30. while read file ; do \
  31. . es.sh ; \
  32. envsubst < "$$file" > "$$(echo $$file | sed 's/meta/md/' | sed 's^pages^es/lgn^')" ; \
  33. done < lists/md.txt
  34. cp -r misc/res es/lgn/res
  35. sleep .1 ; . es.sh ; envsubst < misc/swx.conf.meta > es/swx.conf
  36. sleep .1 ; . es.sh ; envsubst < misc/Makefile.meta > es/Makefile
  37. sleep .1 ; . es.sh ; envsubst < misc/res/js/utctime.js.meta > es/lgn/res/js/utctime.js
  38. cp swx/* es
  39. mv es/lgn/index.md es/lgn/índice.md
  40. mv es/lgn/contact.md es/lgn/contacto.md
  41. mv es/lgn/list.md es/lgn/lista.md
  42. mv es/lgn/schedule.md es/lgn/programa.md
  43. clean:
  44. rm -rf en/ es/ eo/