/[debian]/cpulimit/trunk/debian/rules
ViewVC logotype

Annotation of /cpulimit/trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1354 - (hide annotations)
Fri Jun 20 19:44:46 2008 UTC (12 years, 11 months ago) by gregoa
File size: 1391 byte(s)
Add 03_Makefile.patch: allows to set CFLAGS; use CFLAGS in
debian/rules; thanks again to Cesare Tirabassi!
1 gregoa 192 #!/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 gregoa 1333 include /usr/share/quilt/quilt.make
13 gregoa 192
14     CFLAGS = -Wall -g
15    
16     ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17     CFLAGS += -O0
18     else
19     CFLAGS += -O2
20     endif
21    
22     build: build-stamp
23 gregoa 1333 build-stamp: $(QUILT_STAMPFN)
24 gregoa 192 dh_testdir
25 gregoa 1354 CFLAGS="$(CFLAGS)" $(MAKE)
26 gregoa 1332 touch $@
27 gregoa 192
28 gregoa 588 clean: unpatch
29 gregoa 192 dh_testdir
30     dh_testroot
31 gregoa 1337 rm -f build-stamp install-stamp
32 gregoa 254 [ ! -f Makefile ] || $(MAKE) clean
33 gregoa 1336 dh_clean
34 gregoa 192
35 gregoa 1332 install: install-stamp
36     install-stamp: build-stamp
37 gregoa 192 dh_testdir
38     dh_testroot
39 gregoa 1336 dh_clean -k
40     dh_install cpulimit usr/bin
41 gregoa 1332 touch $@
42 gregoa 192
43     # Build architecture-independent files here.
44     binary-indep: build install
45 gregoa 254 # We have nothing to do.
46 gregoa 192
47     # Build architecture-dependent files here.
48     binary-arch: build install
49     dh_testdir
50     dh_testroot
51 gregoa 1336 dh_installchangelogs
52 gregoa 192 dh_installdocs
53 gregoa 451 dh_installman debian/cpulimit.1
54 gregoa 192 dh_strip
55     dh_compress
56     dh_fixperms
57     dh_installdeb
58     dh_shlibdeps
59     dh_gencontrol
60     dh_md5sums
61     dh_builddeb
62    
63     binary: binary-indep binary-arch
64 gregoa 1332 .PHONY: build clean binary-indep binary-arch binary install

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26