~ubuntu-branches/ubuntu/trusty/chemeq/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Georges Khaznadar
  • Date: 2013-06-23 12:06:15 UTC
  • mfrom: (3.1.4)
  • Revision ID: package-import@ubuntu.com-20130623120615-85wiewwf5kmv2c2o
Tags: 2.11-1
* replaced the \rightarrow macro by \longrightarrow
* removed the strange option forged for buggy WIMS behaviors
* fixed the encodong of chemeq.h
* implemented the version management by Makefile
* update dh level to 9
* updated debian/rules to dh7 format
* updated source format to 3.0: quilt

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
2
3
# Sample debian/rules that uses debhelper.
3
 
# GNU copyright 1997 to 1999 by Joey Hess.
 
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.
4
8
 
5
9
# Uncomment this to turn on verbose mode.
6
10
#export DH_VERBOSE=1
7
11
 
8
 
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
9
 
        CFLAGS += -g
10
 
endif
11
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
12
 
        INSTALL_PROGRAM += -s
13
 
endif
14
 
 
15
 
configure: configure-stamp
16
 
configure-stamp:
17
 
        dh_testdir
18
 
        # Add here commands to configure the package.
19
 
        version=$$(basename $$(pwd)| sed 's/chemeq-//'); \
20
 
        sed "s/VERSION.*/VERSION \"$${version}\"/" src/chemeq.h > src/chemeq.h.tmp && \
21
 
        mv src/chemeq.h.tmp src/chemeq.h
22
 
 
23
 
        touch configure-stamp
24
 
 
25
 
 
26
 
build: build-stamp
27
 
 
28
 
build-stamp: configure-stamp 
29
 
        dh_testdir
30
 
 
31
 
        # Add here commands to compile the package.
32
 
        $(MAKE)
33
 
        #/usr/bin/docbook-to-man debian/chemeq.sgml > chemeq.1
34
 
 
35
 
        touch build-stamp
36
 
 
37
 
clean:
38
 
        dh_testdir
39
 
        dh_testroot
40
 
        rm -f build-stamp configure-stamp
41
 
 
42
 
        # Add here commands to clean up after the build process.
43
 
        $(MAKE) clean
44
 
 
45
 
        dh_clean
46
 
 
47
 
install: build
48
 
        dh_testdir
49
 
        dh_testroot
50
 
        dh_prep
51
 
        dh_installdirs
52
 
 
53
 
        # Add here commands to install the package into debian/chemeq.
54
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/chemeq
55
 
 
56
 
 
57
 
# Build architecture-independent files here.
58
 
binary-indep: build install
59
 
# We have nothing to do by default.
60
 
 
61
 
# Build architecture-dependent files here.
62
 
binary-arch: build install
63
 
        dh_testdir
64
 
        dh_testroot
65
 
        dh_installdocs
66
 
        dh_installexamples
67
 
        dh_installmenu
68
 
        dh_installman
69
 
        dh_installchangelogs 
70
 
        dh_link
71
 
        dh_strip
72
 
        dh_compress
73
 
        dh_fixperms
74
 
        dh_installdeb
75
 
        dh_shlibdeps
76
 
        dh_gencontrol
77
 
        dh_md5sums
78
 
        dh_builddeb
79
 
 
80
 
binary: binary-indep binary-arch
81
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
12
%:
 
13
        dh $@