C declaration composer for the GNU Compiler Collection https://colberg.org/gcc-lua-cdecl
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.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #
  2. # C declaration composer for GCC Lua plugin.
  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. INCDIR = $(PREFIX)/include
  9. DOCDIR = $(PREFIX)/share/doc/gcc-lua-cdecl
  10. INSTALL_D = install -d
  11. INSTALL_F = install -m 644
  12. FILES_LUA = cdecl.lua
  13. FILES_DOC = index.mdwn INSTALL.mdwn README.mdwn ffi-cdecl.mdwn reference.mdwn CHANGES.mdwn
  14. FILES_DOC_HTML = index.html INSTALL.html README.html ffi-cdecl.html reference.html CHANGES.html pandoc.css gcc-lua-cdecl.png
  15. FILES_FFICDECL_LUA = ffi-cdecl.lua
  16. FILES_FFICDECL_INC = ffi-cdecl.h
  17. FILES_FFICDECL_DOC = C.c C.lua.in Makefile
  18. all: test
  19. install:
  20. $(INSTALL_D) $(DESTDIR)$(LUADIR)/gcc
  21. cd gcc && $(INSTALL_F) $(FILES_LUA) $(DESTDIR)$(LUADIR)/gcc
  22. $(INSTALL_D) $(DESTDIR)$(DOCDIR)
  23. cd doc && $(INSTALL_F) $(FILES_DOC) $(FILES_DOC_HTML) $(DESTDIR)$(DOCDIR)
  24. $(INSTALL_D) $(DESTDIR)$(LUADIR)
  25. cd ffi-cdecl && $(INSTALL_F) $(FILES_FFICDECL_LUA) $(DESTDIR)$(LUADIR)
  26. $(INSTALL_D) $(DESTDIR)$(INCDIR)
  27. cd ffi-cdecl && $(INSTALL_F) $(FILES_FFICDECL_INC) $(DESTDIR)$(INCDIR)
  28. $(INSTALL_D) $(DESTDIR)$(DOCDIR)/examples/ffi-cdecl
  29. cd ffi-cdecl && $(INSTALL_F) $(FILES_FFICDECL_DOC) $(DESTDIR)$(DOCDIR)/examples/ffi-cdecl
  30. clean:
  31. SUBDIRS = test doc
  32. .PHONY: $(SUBDIRS)
  33. $(SUBDIRS):
  34. @$(MAKE) -C $@