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 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #
  2. # HDF5 for Lua.
  3. # Copyright © 2013–2015 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-hdf5
  9. INSTALL_D = mkdir -p
  10. INSTALL_F = install -m 644
  11. INSTALL_X = install -m 755
  12. FILES_LUA = C.lua init.lua
  13. FILES_DOC = index.mdwn INSTALL.mdwn README.mdwn reference.mdwn CHANGES.mdwn
  14. FILES_DOC_HTML = index.html INSTALL.html README.html reference.html CHANGES.html pandoc.css lua-hdf5.png hyperslab.svg
  15. FILES_EXAMPLES = attribute.lua dataset.lua dataspace.lua
  16. all: hdf5 test
  17. gcc-lua-cdecl: gcc-lua
  18. hdf5: gcc-lua-cdecl
  19. test: hdf5
  20. install:
  21. $(INSTALL_D) $(DESTDIR)$(LUADIR)/hdf5
  22. cd hdf5 && $(INSTALL_F) $(FILES_LUA) $(DESTDIR)$(LUADIR)/hdf5
  23. $(INSTALL_D) $(DESTDIR)$(DOCDIR)
  24. cd doc && $(INSTALL_F) $(FILES_DOC) $(FILES_DOC_HTML) $(DESTDIR)$(DOCDIR)
  25. $(INSTALL_D) $(DESTDIR)$(DOCDIR)/examples
  26. cd examples && $(INSTALL_X) $(FILES_EXAMPLES) $(DESTDIR)$(DOCDIR)/examples
  27. clean:
  28. @$(MAKE) -C hdf5 clean
  29. @$(MAKE) -C test clean
  30. @$(MAKE) -C gcc-lua clean
  31. @$(MAKE) -C gcc-lua-cdecl clean
  32. SUBDIRS = hdf5 test doc gcc-lua gcc-lua-cdecl
  33. .PHONY: $(SUBDIRS)
  34. $(SUBDIRS):
  35. @$(MAKE) -C $@