Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Makefile for the Dragora Handbook.
  2. #
  3. # Copyright (c) 2020, 2022, 2023 Matias Fonzo, <selk@dragora.org>.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. objects = en/dragora-handbook-content.texi en/dragora-handbook-header.texi \
  17. en/dragora-handbook-menu.texi en/qi-content.texi common/fdl.texi
  18. .PHONY: all en
  19. all : en
  20. en : en/dragora-handbook.info en/dragora-handbook.doc en/dragora-handbook.html en/dragora-handbook.txt
  21. en/dragora-handbook.info : ${objects}
  22. makeinfo en/dragora-handbook.texi -o $@
  23. en/dragora-handbook.doc : ${objects}
  24. makeinfo --docbook en/dragora-handbook.texi -o $@
  25. en/dragora-handbook.html : ${objects} common/handbook.css
  26. makeinfo --html --no-split \
  27. --css-include=common/handbook.css \
  28. en/dragora-handbook.texi -o $@
  29. gzip -f -k -9 en/dragora-handbook.html
  30. en/dragora-handbook.txt : ${objects}
  31. makeinfo --plaintext en/dragora-handbook.texi > $@
  32. gzip -f -k -9 en/dragora-handbook.txt
  33. clean :
  34. rm -f \
  35. en/dragora-handbook.info \
  36. en/dragora-handbook.doc \
  37. en/dragora-handbook.html \
  38. en/dragora-handbook.html.gz \
  39. en/dragora-handbook.txt \
  40. en/dragora-handbook.txt.gz