Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. MODULE_TOPDIR = ../..
  2. SUBDIRS = docs animation mapswipe gmodeler rlisetup psmap dbmgr vdigit iclass
  3. EXTRA_CLEAN_FILES = menustrings.py build_ext.pyc
  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) menustrings.py
  18. $(MAKE) parsubdirs
  19. $(ETCDIR)/%: % | $(PYDSTDIRS) $(DSTDIRS)
  20. $(INSTALL_DATA) $< $@
  21. menustrings.py: core/menutree.py $(ETCDIR)/xml/menudata.xml $(ETCDIR)/xml/menudata_modeler.xml $(ETCDIR)/xml/menudata_psmap.xml
  22. $(call run_grass,$(PYTHON) $< > $@)
  23. $(call run_grass,$(PYTHON) $< "modeler" >> $@)
  24. $(call run_grass,$(PYTHON) $< "psmap" >> $@)
  25. $(PYDSTDIRS): %: | $(ETCDIR)
  26. $(MKDIR) $@
  27. $(call run_grass,$(PYTHON) create__init__.py $@)
  28. $(DSTDIRS): %: | $(ETCDIR)
  29. $(MKDIR) $@
  30. $(ETCDIR):
  31. $(MKDIR) $@
  32. #doxygen:
  33. DOXNAME = wxpython