Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. srcdir = .
  2. BASHREF = ${srcdir}/bashref.texi
  3. BASHREF_ES = ${srcdir}/bashref.es.texi
  4. BASHREF_PO = ${srcdir}/bashref.es.po
  5. BASHREF_POT = ${srcdir}/bashref.pot
  6. HSUSER = ${srcdir}/hsuser.texi
  7. HSUSER_ES = ${srcdir}/hsuser.es.texi
  8. HSUSER_PO = ${srcdir}/hsuser.es.po
  9. HSUSER_POT = ${srcdir}/hsuser.pot
  10. RLUSER = ${srcdir}/rluser.texi
  11. RLUSER_ES = ${srcdir}/rluser.es.texi
  12. RLUSER_PO = ${srcdir}/rluser.es.po
  13. RLUSER_POT = ${srcdir}/rluser.pot
  14. .PHONY: actualiza_pot html info libro pdf texi
  15. pdf: texi
  16. texi2pdf $(BASHREF_ES)
  17. html: texi
  18. texi2html $(BASHREF_ES)
  19. info: texi
  20. makeinfo $(BASHREF_ES)
  21. libro: texi
  22. sed -i "/Version @value{VERSION}/ a\\\nPuede descargar las fuentes del documento desde\nhttps://notabug.org/jorgesumle/bashrefes" $(BASHREF_ES)
  23. texi2pdf $(BASHREF_ES)
  24. texi:
  25. sed -f tildes_a_texi.sed $(BASHREF_PO) > "$(BASHREF_PO).tmp"
  26. sed -f tildes_a_texi.sed $(RLUSER_PO) > "$(RLUSER_PO).tmp"
  27. sed -f tildes_a_texi.sed $(HSUSER_PO) > "$(HSUSER_PO).tmp"
  28. po4a-translate -f texinfo -m $(BASHREF) -p "$(BASHREF_PO).tmp" -l $(BASHREF_ES)
  29. po4a-translate -f texinfo -m $(RLUSER) -p "$(RLUSER_PO).tmp" -l $(RLUSER_ES)
  30. po4a-translate -f texinfo -m $(HSUSER) -p "$(HSUSER_PO).tmp" -l $(HSUSER_ES)
  31. sed -i -f ediciones-finales.sed $(BASHREF_ES)
  32. actualiza_pot:
  33. po4a-gettextize -f texinfo -m $(BASHREF) -p $(BASHREF_POT)
  34. po4a-gettextize -f texinfo -m $(HSUSER) -p $(HSUSER_POT)
  35. po4a-gettextize -f texinfo -m $(RLUSER) -p $(RLUSER_POT)