source: tuxpaint-config/trunk/fuentes/debian/rules @ 220

Last change on this file since 220 was 220, checked in by mabarracus, 4 years ago

added tuxpaint-config sources from trusty

  • Property svn:executable set to *
File size: 2.5 KB
Line 
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Sample debian/rules that uses debhelper.
4# GNU copyright 1997 to 1999 by Joey Hess.
5
6# Uncomment this to turn on verbose mode.
7#export DH_VERBOSE=1
8
9include /usr/share/quilt/quilt.make
10
11export DH_ALWAYS_EXCLUDE=CVS
12
13CFLAGS = -Wall -g
14
15ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
16        CFLAGS += -O0
17else
18        CFLAGS += -O2
19endif
20ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
21        INSTALL_PROGRAM += -s
22endif
23
24configure: configure-stamp
25configure-stamp:
26        dh_testdir
27        # Add here commands to configure the package.
28
29        touch configure-stamp
30
31
32build: build-stamp
33
34build-arch-stamp: $(QUILT_STAMPFN)
35        dh_testdir
36        touch build-arch-stamp
37       
38build-stamp: configure-stamp build-arch-stamp
39        dh_testdir
40
41        # Add here commands to compile the package.
42        $(MAKE) PREFIX=/usr CFLAGS="$(CFLAGS)"
43
44        touch build-stamp
45
46clean: unpatch
47        dh_testdir
48        dh_testroot
49        rm -f build-stamp configure-stamp build-arch-stamp
50
51        # Add here commands to clean up after the build process.
52        $(MAKE) clean
53
54        dh_clean
55
56install: build
57        dh_testdir
58        dh_testroot
59        dh_clean -k
60        dh_installdirs
61
62        # Add here commands to install the package into debian/tuxpaint-config.
63        $(MAKE) install \
64          PREFIX=$(CURDIR)/debian/tuxpaint-config/usr \
65          CONFDIR=$(CURDIR)/debian/tuxpaint/etc/tuxpaint \
66          GNOME_PREFIX=$(CURDIR)/debian/tuxpaint-config/usr \
67          KDE_PREFIX=$(CURDIR)/debian/tuxpaint-config/usr/share/applnk \
68          KDE_ICON_PREFIX=$(CURDIR)/debian/tuxpaint-config/usr/share/icons \
69          X11_ICON_PREFIX=$(CURDIR)/debian/tuxpaint-config/usr/share/pixmaps/
70        # Cleanup after install
71        rm $(CURDIR)/debian/tuxpaint-config/usr/share/doc/tuxpaint-config/CHANGES.txt
72        rm $(CURDIR)/debian/tuxpaint-config/usr/share/doc/tuxpaint-config/COPYING.txt
73        # install desktop file to freedesktop default directory
74        install -m 664 $(CURDIR)/src/tuxpaint-config.desktop \
75          $(CURDIR)/debian/tuxpaint-config/usr/share/applications
76        # remove redundant desktop file from old KDE location
77        rm $(CURDIR)/debian/tuxpaint-config/usr/share/applnk/Preferences/tuxpaint-config.desktop
78
79# Build architecture-independent files here.
80binary-indep: build install
81# We have nothing to do by default.
82
83# Build architecture-dependent files here.
84binary-arch: build install
85        dh_testdir
86        dh_testroot
87        dh_installchangelogs docs/CHANGES.txt
88        dh_installdocs
89        dh_installexamples
90        dh_installman
91        dh_installmenu
92        dh_link
93        dh_strip
94        dh_compress
95        dh_fixperms
96        dh_installdeb
97        dh_shlibdeps
98        dh_gencontrol
99        dh_md5sums
100        dh_builddeb
101
102binary: binary-indep binary-arch
103.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.