Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. all:
  2. make english
  3. sleep .1 ; cd en ; make
  4. # mv forum en/lbsd.static/forum
  5. # mv phpbb en/lbsd.static/phpbb
  6. cp en/lbsd.static/arts/logo_forum.png en/lbsd.static/forumlogo.png
  7. make esperanto
  8. sleep .1 ; cd eo ; make
  9. esperanto:
  10. sh eo.sh && mkdir $$(cat lists/mkdir.txt | sed 's^%l^eo^g')
  11. while read file ; do \
  12. . ./eo.sh ; \
  13. envsubst < "$$file" > "$$(echo $$file | sed 's/meta/md/' | sed 's^pages^eo/lbsd^')" ; \
  14. done < lists/md.txt
  15. cp swx/* eo/
  16. cp -r misc/arts eo/lbsd/artoj
  17. sleep .1 ; . ./eo.sh ; envsubst < misc/swx.conf.meta > eo/swx.conf
  18. sleep .1 ; . ./eo.sh ; envsubst < misc/Makefile.meta > eo/Makefile
  19. mv eo/lbsd/index.md eo/lbsd/indekso.md
  20. mv eo/lbsd/art.md eo/lbsd/arto.md
  21. castellano:
  22. sh es.sh && mkdir $$(cat lists/mkdir.txt | sed 's^%l^es^g')
  23. while read file ; do \
  24. . es.sh ; \
  25. envsubst < "$$file" > "$$(echo $$file | sed 's/meta/md/' | sed 's^pages^es/lbsd^')" ; \
  26. done < lists/md.txt
  27. cp swx/* es/
  28. cp -r misc/arts es/lbsd/artoj
  29. sleep .1 ; . es.sh ; envsubst < misc/swx.conf.meta > es/swx.conf
  30. sleep .1 ; . es.sh ; envsubst < misc/Makefile.meta > es/Makefile
  31. mv es/lbsd/index.md es/lbsd/indekso.md
  32. mv es/lbsd/art.md es/lbsd/arto.md
  33. english:
  34. sh en.sh && mkdir $$(cat lists/mkdir.txt | sed 's^%l^en^g')
  35. while read file ; do \
  36. . ./en.sh ; \
  37. envsubst < "$$file" > "$$(echo $$file | sed 's/meta/md/' | sed 's^pages^en/lbsd^')" ; \
  38. done < lists/md.txt
  39. cp swx/* en
  40. cp -r misc/arts en/lbsd/arts
  41. sleep .1 ; . ./en.sh ; envsubst < misc/swx.conf.meta > en/swx.conf
  42. sleep .1 ; . ./en.sh ; envsubst < misc/Makefile.meta > en/Makefile
  43. clean:
  44. #mv en/lbsd.static/forum ./forum
  45. # mv en/lbsd.static/phpbb ./phpbb
  46. rm -rf en/ eo/