Makefile 962 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. MODULE_TOPDIR = ../..
  2. SUBDIRS = docs scripts vdigit nviz
  3. EXTRA_CLEAN_FILES = menustrings.py
  4. CLEAN_SUBDIRS = vdigit nviz
  5. include $(MODULE_TOPDIR)/include/Make/Dir.make
  6. include $(MODULE_TOPDIR)/include/Make/Doxygen.make
  7. ETCDIR = $(ETC)/wxpython
  8. SRCFILES := $(wildcard scripts/p.* compat/* gui_modules/* icons/*.* icons/silk/* images/* xml/*) gis_set.py wxgui.py README scripts/wxgui
  9. DSTFILES := $(patsubst %,$(ETCDIR)/%,$(SRCFILES))
  10. default: install_scripts
  11. $(MAKE) parsubdirs
  12. install_scripts:
  13. -for dir in '' compat gui_modules icons icons/silk images scripts vdigit xml nviz ; do \
  14. if [ ! -d $(ETCDIR)/$$dir ] ; then $(MKDIR) $(ETCDIR)/$$dir ; fi ; \
  15. done
  16. $(MAKE) $(DSTFILES)
  17. $(MAKE) menustrings.py
  18. $(ETCDIR)/scripts/wxgui: wxgui
  19. $(INSTALL) $< $@
  20. $(ETCDIR)/scripts/%: scripts/%
  21. $(INSTALL) $< $@
  22. $(ETCDIR)/%: %
  23. $(INSTALL_DATA) $< $@
  24. menustrings.py: gui_modules/menudata.py xml/menudata.xml
  25. python $< $(GISBASE) > $@
  26. #doxygen:
  27. DOXNAME=wxpython