Makefile 932 B

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