~ubuntu-branches/debian/squeeze/smplayer/squeeze

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Breuil Cyril
  • Date: 2007-05-06 17:09:35 UTC
  • Revision ID: james.westby@ubuntu.com-20070506170935-c3qsckv5nennfqoq
Tags: 0.4.12-0ubuntu1
Initial release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
# Sample debian/rules that uses debhelper.
 
4
# This file was originally written by Joey Hess and Craig Small.
 
5
# As a special exception, when this file is copied by dh-make into a
 
6
# dh-make output file, you may use that output file without restriction.
 
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
 
8
 
 
9
# Uncomment this to turn on verbose mode.
 
10
#export DH_VERBOSE=1
 
11
 
 
12
 
 
13
 
 
14
CFLAGS = -Wall -g
 
15
 
 
16
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
17
        CFLAGS += -O0
 
18
else
 
19
        CFLAGS += -O2
 
20
endif
 
21
 
 
22
 
 
23
build: build-stamp
 
24
 
 
25
build-stamp:  
 
26
        dh_testdir
 
27
 
 
28
        # Add here commands to compile the package.
 
29
        $(MAKE) KDE_SUPPORT=1 KDE_INCLUDE_PATH=/usr/include/kde
 
30
 
 
31
        touch $@
 
32
 
 
33
clean: 
 
34
        dh_testdir
 
35
        dh_testroot
 
36
        rm -f build-stamp configure-stamp
 
37
 
 
38
        # Add here commands to clean up after the build process.
 
39
        -$(MAKE) clean
 
40
 
 
41
        dh_clean 
 
42
 
 
43
install: build
 
44
        dh_testdir
 
45
        dh_testroot
 
46
        dh_clean -k 
 
47
        dh_installdirs
 
48
 
 
49
        # Add here commands to install the package into debian/smplayer.
 
50
        $(MAKE) DESTDIR=$(CURDIR)/debian/smplayer install
 
51
        rm -rf $(CURDIR)/debian/smplayer/usr/share/doc/packages
 
52
 
 
53
# Build architecture-independent files here.
 
54
binary-indep: build install
 
55
# We have nothing to do by default.
 
56
 
 
57
# Build architecture-dependent files here.
 
58
binary-arch: build install
 
59
        dh_testdir
 
60
        dh_testroot
 
61
        dh_installchangelogs Changelog
 
62
        dh_installdocs
 
63
        dh_installman debian/smplayer.1
 
64
        dh_strip
 
65
        dh_compress
 
66
        dh_fixperms
 
67
        dh_installdeb
 
68
        dh_shlibdeps
 
69
        dh_gencontrol
 
70
        dh_md5sums
 
71
        dh_builddeb
 
72
 
 
73
binary: binary-indep binary-arch
 
74
.PHONY: build clean binary-indep binary-arch binary install configure
 
75