Lua plugin for the GNU Compiler Collection https://colberg.org/gcc-lua
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 986B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Lua plugin for the GNU Compiler Collection.
  3. # Copyright © 2012–2015 Peter Colberg.
  4. # Distributed under the MIT license. (See accompanying file LICENSE.)
  5. #
  6. PREFIX = /usr/local
  7. CC = gcc
  8. INSTALL_GCC_PLUGIN = $(shell $(CC) -print-file-name=plugin)
  9. INSTALL_DOC = $(PREFIX)/share/doc/gcc-lua
  10. INSTALL_D = install -d
  11. INSTALL_F = install -m 644
  12. INSTALL_L = install -m 644 -s
  13. FILES_GCC_PLUGIN = gcclua.so
  14. FILES_DOC = CHANGES.mdwn INSTALL.mdwn README.mdwn index.mdwn reference.mdwn
  15. FILES_DOC_HTML = CHANGES.html INSTALL.html README.html index.html reference.html pandoc.css gcc-lua.png
  16. all: gcc test
  17. test: gcc
  18. install:
  19. $(INSTALL_D) $(DESTDIR)$(INSTALL_GCC_PLUGIN)
  20. cd gcc && $(INSTALL_L) $(FILES_GCC_PLUGIN) $(DESTDIR)$(INSTALL_GCC_PLUGIN)
  21. $(INSTALL_D) $(DESTDIR)$(INSTALL_DOC)
  22. cd doc && $(INSTALL_F) $(FILES_DOC) $(FILES_DOC_HTML) $(DESTDIR)$(INSTALL_DOC)
  23. clean:
  24. @$(MAKE) -C gcc clean
  25. SUBDIRS = gcc test doc
  26. .PHONY: $(SUBDIRS)
  27. $(SUBDIRS):
  28. @$(MAKE) -C $@