~ubuntu-branches/debian/jessie/adabrowse/jessie

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Adrian-Ken Rueegsegger
  • Date: 2014-10-19 12:43:15 UTC
  • Revision ID: package-import@ubuntu.com-20141019124315-4t1tiagpjcdiu0a2
Tags: 4.0.3-6
* Update debian/copyright file
* Update to Standards-Version 3.9.6 (no changes)
* Rebuild with gnat-4.9 and asis 2014 (Closes: #747557)
* Add debian/watch file
* Enable dpkg-buildflags hardening options
* Simplify debian/rules
* Update to debhelper 9

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
include /usr/share/quilt/quilt.make
4
4
 
 
5
DPKG_EXPORT_BUILDFLAGS = 1
 
6
include /usr/share/dpkg/buildflags.mk
 
7
 
 
8
ADAFLAGS := $(filter-out -Wformat -Werror=format-security, $(CFLAGS))
 
9
export ADAFLAGS
 
10
 
5
11
CPUS := $(shell getconf _NPROCESSORS_ONLN)
6
12
CC := gcc
7
13
 
8
 
clean: unpatch
9
 
        dh_testdir
10
 
        dh_testroot
 
14
%:
 
15
        dh ${@}
11
16
 
 
17
override_dh_auto_clean:
12
18
        rm -rf obj adabrowse sdefault.adb ad-projects-impl_yes-get_parent.adb
13
 
        rm -f build-stamp
14
 
 
15
19
        dh_clean
16
20
 
17
 
build: build-arch build-indep
18
 
 
19
 
build-arch: build-stamp
20
 
 
21
 
build-indep: build-stamp
22
 
 
23
 
build-stamp: $(QUILT_STAMPFN)
24
 
        dh_testdir
25
 
 
 
21
override_dh_auto_build:
26
22
        mkdir -p obj
27
 
        $(CC) -c util-nl.c -o obj/util-nl.o -O2
 
23
        $(CC) -c util-nl.c -o obj/util-nl.o $(CFLAGS)
28
24
        gnatmake -j$(CPUS) -Pdebian/misc/adabrowse.gpr
29
25
 
30
 
        touch build-stamp
31
 
 
32
 
install:
33
 
 
34
 
binary: binary-arch
35
 
 
36
 
binary-arch: build
37
 
        dh_testdir
38
 
        dh_testroot
39
 
        dh_installchangelogs
40
 
        dh_installdocs
41
 
        dh_installexamples
42
 
        dh_install
43
 
        dh_installman
44
 
        dh_strip
 
26
override_dh_auto_test:
 
27
override_dh_auto_install:
 
28
 
 
29
override_dh_compress:
45
30
        dh_compress -X.ads -X.adb
46
 
        dh_fixperms
47
 
        dh_installdeb
48
 
        dh_shlibdeps
49
 
        dh_gencontrol
50
 
        dh_md5sums
51
 
        dh_builddeb
52
 
 
53
 
binary-indep:
54
 
 
55
 
.PHONY: clean build build-arch build-indep install binary binary-arch binary-indep