Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. MODULE_TOPDIR = ../..
  2. SUBDIRS = docs
  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 core/* dbmgr/* gcp/* gmodeler/* gui_core/* iclass/* lmgr/* location_wizard/* \
  10. mapdisp/* modules/* nviz/* psmap/* swipe/* vdigit/* wxplot/* ogc_services/*) \
  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)/%,core dbmgr gcp gmodeler gui_core iclass lmgr location_wizard \
  14. mapdisp modules nviz psmap swipe vdigit wxplot ogc_services)
  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/menudata.py $(ETCDIR)/xml/menudata.xml $(ETCDIR)/xml/menudata_modeler.xml
  22. $(call run_grass,$(PYTHON) $< > $@)
  23. $(call run_grass,$(PYTHON) $< "modeler" >> $@)
  24. $(PYDSTDIRS): %: | $(ETCDIR)
  25. $(MKDIR) $@
  26. $(call run_grass,$(PYTHON) create__init__.py $@)
  27. $(DSTDIRS): %: | $(ETCDIR)
  28. $(MKDIR) $@
  29. $(ETCDIR):
  30. $(MKDIR) $@
  31. #doxygen:
  32. DOXNAME=wxpython