You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 857B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # Lua Units.
  3. # Copyright © 2013 Peter Colberg.
  4. # Distributed under the MIT license. (See accompanying file LICENSE.)
  5. #
  6. PREFIX = /usr/local
  7. LUADIR = $(PREFIX)/share/lua/5.1
  8. DOCDIR = $(PREFIX)/share/doc/lua-units
  9. INSTALL_D = mkdir -p
  10. INSTALL_F = install -m 644
  11. FILES_LUA = C.lua init.lua
  12. FILES_DOC = index.mdwn INSTALL.mdwn reference.mdwn
  13. FILES_DOC_HTML = index.html INSTALL.html reference.html pandoc.css lua-units.png
  14. all: units doc
  15. units:
  16. @$(MAKE) -C units
  17. test:
  18. @$(MAKE) -C test
  19. doc:
  20. @$(MAKE) -C doc
  21. install:
  22. $(INSTALL_D) $(DESTDIR)$(LUADIR)/units
  23. cd units && $(INSTALL_F) $(FILES_LUA) $(DESTDIR)$(LUADIR)/units
  24. $(INSTALL_D) $(DESTDIR)$(DOCDIR)
  25. cd doc && $(INSTALL_F) $(FILES_DOC) $(FILES_DOC_HTML) $(DESTDIR)$(DOCDIR)
  26. clean:
  27. @$(MAKE) -C units clean
  28. @$(MAKE) -C test clean
  29. @$(MAKE) -C doc clean
  30. .PHONY: units test doc install clean