~ubuntu-branches/ubuntu/karmic/pouetchess/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc (mr_pouit)
  • Date: 2006-07-15 15:45:57 UTC
  • Revision ID: james.westby@ubuntu.com-20060715154557-85t0g4fic1ftn5jb
Tags: 0.2.0-0ubuntu1
Initial release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
include /usr/share/cdbs/1/rules/debhelper.mk
 
4
include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
5
 
 
6
DEB_SCONS_PREFIX=/usr/games
 
7
DEB_SCONS_DATADIR=/usr/share/games/pouetchess
 
8
 
 
9
CONFIG_STATUS=$(DEB_BUILDDIR)/config.status
 
10
SCONS_CMD=scons
 
11
 
 
12
common-configure-arch common-configure-indep:: common-configure-impl
 
13
common-configure-impl:: $(CONFIG_STATUS)
 
14
$(CONFIG_STATUS):
 
15
        $(SCONS_CMD) configure prefix=$(DEB_SCONS_PREFIX) datadir=$(DEB_SCONS_DATADIR) optimize=noarch
 
16
        touch $(CONFIG_STATUS)
 
17
 
 
18
common-build-arch common-build-indep:: common-build-impl
 
19
common-build-impl::
 
20
        $(SCONS_CMD)
 
21
 
 
22
common-install-arch common-install-indep:: common-install-impl
 
23
common-install-impl::
 
24
        DESTDIR=$(DEB_DESTDIR) $(SCONS_CMD) install
 
25
 
 
26
install/pouetchess::
 
27
        mkdir -pv $(DEB_DESTDIR)/usr/share/applications/
 
28
        mkdir -pv $(DEB_DESTDIR)/usr/share/pixmaps/
 
29
        cp -a -f debian/pouetChess.desktop \
 
30
          $(DEB_DESTDIR)/usr/share/applications/
 
31
        cp -a -f data/icons/pouetChess.png \
 
32
          $(DEB_DESTDIR)/usr/share/pixmaps/
 
33
 
 
34
clean::
 
35
        $(SCONS_CMD) -c
 
36
        rm -f $(CONFIG_STATUS)
 
37
        rm -rf .sconf_temp src/config.h config.log
 
38
        rm -f *.pyc *opts.py
 
39
        rm -f `find . -name ".sconsign"`
 
40
        rm -f pouetChess
 
41
 
 
42
DEB_INSTALL_MANPAGES_pouetchess = debian/pouetChess.6
 
43
DEB_DH_INSTALL_SOURCEDIR = debian/tmp