Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. MODULE_TOPDIR = ../..
  2. SUBDIRS = docs animation mapswipe gmodeler rlisetup psmap dbmgr vdigit iclass
  3. EXTRA_CLEAN_FILES = menustrings.py build_ext.pyc xml/menudata.xml
  4. include $(MODULE_TOPDIR)/include/Make/Dir.make
  5. include $(MODULE_TOPDIR)/include/Make/Doxygen.make
  6. include $(MODULE_TOPDIR)/include/Make/Python.make
  7. ETCDIR = $(ETC)/gui/wxpython
  8. SRCFILES := $(wildcard icons/*.* scripts/* xml/*) \
  9. $(wildcard animation/* core/* dbmgr/* gcp/* gmodeler/* gui_core/* iclass/* lmgr/* location_wizard/* \
  10. mapdisp/* modules/* nviz/* psmap/* mapswipe/* vdigit/* wxplot/* web_services/* rlisetup/* vnet/*) \
  11. gis_set.py gis_set_error.py wxgui.py README
  12. DSTFILES := $(patsubst %,$(ETCDIR)/%,$(SRCFILES)) $(patsubst %.py,$(ETCDIR)/%.pyc,$(filter %.py,$(SRCFILES)))
  13. PYDSTDIRS := $(patsubst %,$(ETCDIR)/%,animation core dbmgr gcp gmodeler gui_core iclass lmgr location_wizard \
  14. mapdisp modules nviz psmap mapswipe vdigit wxplot web_services rlisetup vnet)
  15. DSTDIRS := $(patsubst %,$(ETCDIR)/%,icons scripts xml)
  16. default: $(DSTFILES)
  17. -$(MAKE) $(ETCDIR)/xml/module_items.xml
  18. -$(MAKE) xml/menudata.xml
  19. -$(MAKE) menustrings.py
  20. $(MAKE) parsubdirs
  21. $(ETCDIR)/%: % | $(PYDSTDIRS) $(DSTDIRS)
  22. $(INSTALL_DATA) $< $@
  23. xml/menudata.xml: core/toolboxes.py
  24. $(call run_grass,$(PYTHON) $< > $@)
  25. menustrings.py: core/menutree.py $(ETCDIR)/xml/menudata.xml $(ETCDIR)/xml/menudata_modeler.xml $(ETCDIR)/xml/menudata_psmap.xml
  26. @echo "# This is a generated file.\n" > $@
  27. $(call run_grass,$(PYTHON) $< >> $@)
  28. $(call run_grass,$(PYTHON) $< "modeler" >> $@)
  29. $(call run_grass,$(PYTHON) $< "psmap" >> $@)
  30. $(ETCDIR)/xml/module_items.xml: tools/build_modules_xml.py
  31. @echo "Generating interface description for all modules..."
  32. $(call run_grass,$(PYTHON) $< > $@)
  33. $(PYDSTDIRS): %: | $(ETCDIR)
  34. $(MKDIR) $@
  35. $(DSTDIRS): %: | $(ETCDIR)
  36. $(MKDIR) $@
  37. $(ETCDIR):
  38. $(MKDIR) $@
  39. #doxygen:
  40. DOXNAME = wxpython