~ubuntu-branches/ubuntu/utopic/pyacidobasic/utopic

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Georges Khaznadar
  • Date: 2010-08-15 19:34:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100815193400-ywmgp5v7hv0dhexm
Tags: 0.1-6
* fixed the versionless GPL reference
* upgraded Standards-Version to 3.9.1
* first release to Debian. Closes: #593135

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
DESTDIR = 
2
2
LRELEASE = lrelease-qt4
3
 
 
4
 
all:    Ui_main.py Ui_prelevement.py
 
3
PYPACKAGE = pyacidobasic
 
4
 
 
5
all:    Ui_main.py Ui_prelevement.py pyacidobasic.1.gz languages
 
6
        python setup.py build
 
7
 
 
8
pyacidobasic.1.gz: pyacidobasic.1
 
9
        gzip -c9 $< > $@
 
10
 
 
11
pyacidobasic.1: manpage.xml
 
12
        xsltproc --nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl manpage.xml
5
13
 
6
14
clean:
7
 
        rm -f *~ *.pyc Ui_*.py
 
15
        rm -f *~ *.pyc Ui_*.py *.1 *.1.gz lang/*.qm
 
16
        rm -rf build
8
17
 
9
18
install:
 
19
        python setup.py install --root $(DESTDIR) --prefix=/usr
 
20
        mkdir -p $(DESTDIR)/usr/share/applications
 
21
        cp pyacidobasic.desktop $(DESTDIR)/usr/share/applications
10
22
 
11
23
languages:
12
24
        $(LRELEASE) lang/*.ts 2>/dev/null || lrelease lang/*.ts
13
25
 
 
26
tsfiles: clean
 
27
        pylupdate4 *.py *.ui -ts lang/*.ts
 
28
 
14
29
helpfiles:
15
30
        @$(MAKE) -C help
16
31
 
17
32
Ui_main.py: main.ui
18
 
        pyuic4 $< | sed -e 's/^from qwt_plot/from PyQt4.Qwt5/' > $@
 
33
        pyuic4 $< | sed -e 's/^from qwt_plot/from PyQt4.Qwt5/' -e 's%\(icons/[-:a-zA-Z_0-9]*\.svg\)%/usr/share/$(PYPACKAGE)/\1%g' > $@
19
34
 
20
35
Ui_%.py: %.ui
21
36
        pyuic4 $< > $@
22
37
 
23
 
.PHONY: clean all install languages helpfiles
 
 
b'\\ No newline at end of file'
 
38
.PHONY: clean all install languages helpfiles tsfiles
 
 
b'\\ No newline at end of file'