Makefile 2.2 KB

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