Makefile 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. MODULE_TOPDIR = ../..
  2. include $(MODULE_TOPDIR)/include/Make/Dir.make
  3. SRCICO := $(wildcard *.ico *.png)
  4. SRCICONS := $(wildcard grass/*.png)
  5. SRCFLAGS := $(wildcard flags/*.png)
  6. ETCICONS := $(patsubst %,$(GUIDIR)/icons/%,$(SRCICONS) $(SRCICO) $(SRCFLAGS))
  7. HTMLICONS := $(patsubst grass/%,$(HTMLDIR)/icons/%,$(SRCICONS))
  8. DSTDIRS = \
  9. $(GUIDIR) \
  10. $(GUIDIR)/icons \
  11. $(GUIDIR)/icons/grass \
  12. $(GUIDIR)/icons/flags
  13. HTMLDIRS = \
  14. $(HTMLDIR)/icons
  15. default: $(ETCICONS) $(HTMLICONS)
  16. $(MKDIR) $(ARCH_DISTDIR)/share/applications
  17. $(INSTALL_DATA) grass.desktop $(ARCH_DISTDIR)/share/applications
  18. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/8x8/apps
  19. $(INSTALL_DATA) grass-8x8.png $(ARCH_DISTDIR)/share/icons/hicolor/8x8/apps/grass.png
  20. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/16x16/apps
  21. $(INSTALL_DATA) grass-16x16.png $(ARCH_DISTDIR)/share/icons/hicolor/16x16/apps/grass.png
  22. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/22x22/apps
  23. $(INSTALL_DATA) grass-22x22.png $(ARCH_DISTDIR)/share/icons/hicolor/22x22/apps/grass.png
  24. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/24x24/apps
  25. $(INSTALL_DATA) grass-24x24.png $(ARCH_DISTDIR)/share/icons/hicolor/24x24/apps/grass.png
  26. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/32x32/apps
  27. $(INSTALL_DATA) grass-32x32.png $(ARCH_DISTDIR)/share/icons/hicolor/32x32/apps/grass.png
  28. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/36x36/apps
  29. $(INSTALL_DATA) grass-36x36.png $(ARCH_DISTDIR)/share/icons/hicolor/36x36/apps/grass.png
  30. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/40x40/apps
  31. $(INSTALL_DATA) grass-40x40.png $(ARCH_DISTDIR)/share/icons/hicolor/40x40/apps/grass.png
  32. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/42x42/apps
  33. $(INSTALL_DATA) grass-42x42.png $(ARCH_DISTDIR)/share/icons/hicolor/42x42/apps/grass.png
  34. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/48x48/apps
  35. $(INSTALL_DATA) grass-48x48.png $(ARCH_DISTDIR)/share/icons/hicolor/48x48/apps/grass.png
  36. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/64x64/apps
  37. $(INSTALL_DATA) grass-64x64.png $(ARCH_DISTDIR)/share/icons/hicolor/64x64/apps/grass.png
  38. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/72x72/apps
  39. $(INSTALL_DATA) grass-72x72.png $(ARCH_DISTDIR)/share/icons/hicolor/72x72/apps/grass.png
  40. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/80x80/apps
  41. $(INSTALL_DATA) grass-80x80.png $(ARCH_DISTDIR)/share/icons/hicolor/80x80/apps/grass.png
  42. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/96x96/apps
  43. $(INSTALL_DATA) grass-96x96.png $(ARCH_DISTDIR)/share/icons/hicolor/96x96/apps/grass.png
  44. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/128x128/apps
  45. $(INSTALL_DATA) grass-128x128.png $(ARCH_DISTDIR)/share/icons/hicolor/128x128/apps/grass.png
  46. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/192x192/apps
  47. $(INSTALL_DATA) grass-192x192.png $(ARCH_DISTDIR)/share/icons/hicolor/192x192/apps/grass.png
  48. $(MKDIR) $(ARCH_DISTDIR)/share/icons/hicolor/scalable/apps
  49. $(INSTALL_DATA) grass.svg $(ARCH_DISTDIR)/share/icons/hicolor/scalable/apps/grass.svg
  50. $(MKDIR) $(ARCH_DISTDIR)/share/metainfo
  51. $(INSTALL_DATA) grass.appdata.xml $(ARCH_DISTDIR)/share/metainfo/org.osgeo.grass.appdata.xml
  52. ### disable special 64bit icons (using different icons can be confusing for the user)
  53. # ifeq ($(findstring x86_64,$(ARCH)),x86_64)
  54. # $(INSTALL_DATA) x86_64/grass.ico $(GUIDIR)/icons
  55. # $(INSTALL_DATA) x86_64/grass_osgeo.ico $(GUIDIR)/icons
  56. # endif
  57. $(GUIDIR)/icons/%: % | $(DSTDIRS)
  58. $(INSTALL_DATA) $< $@
  59. $(HTMLDIR)/icons/%: grass/% | $(HTMLDIRS)
  60. $(INSTALL_DATA) $< $@
  61. $(DSTDIRS) $(HTMLDIRS): %:
  62. $(MKDIR) $@