Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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) menustrings.py
  17. $(MAKE) parsubdirs
  18. $(ETCDIR)/%: % | $(PYDSTDIRS) $(DSTDIRS)
  19. $(INSTALL_DATA) $< $@
  20. menustrings.py: core/menudata.py $(ETCDIR)/xml/menudata.xml $(ETCDIR)/xml/menudata_modeler.xml
  21. $(call run_grass,$(PYTHON) $< > $@)
  22. $(call run_grass,$(PYTHON) $< "modeler" >> $@)
  23. $(PYDSTDIRS): %: | $(ETCDIR)
  24. $(MKDIR) $@
  25. $(call run_grass,$(PYTHON) create__init__.py $@)
  26. $(DSTDIRS): %: | $(ETCDIR)
  27. $(MKDIR) $@
  28. $(ETCDIR):
  29. $(MKDIR) $@
  30. #doxygen:
  31. DOXNAME=wxpython