Makefile 1.9 KB

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