Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. english:
  22. sh en.sh && mkdir $$(cat lists/mkdir.txt | sed 's^%l^en^g')
  23. while read file ; do \
  24. . en.sh ; \
  25. envsubst < "$$file" > "$$(echo $$file | sed 's/meta/md/' | sed 's^pages^en/lbsd^')" ; \
  26. done < lists/md.txt
  27. cp swx/* en
  28. cp -r misc/arts en/lbsd/arts
  29. sleep .1 ; . en.sh ; envsubst < misc/swx.conf.meta > en/swx.conf
  30. sleep .1 ; . en.sh ; envsubst < misc/Makefile.meta > en/Makefile
  31. clean:
  32. mv en/lbsd.static/forum ./forum
  33. mv en/lbsd.static/phpbb ./phpbb
  34. rm -rf en/ eo/