~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to gui/wxpython/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

Show diffs side-by-side

added added

removed removed

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