~ubuntu-branches/ubuntu/trusty/checkpolicy/trusty

« back to all changes in this revision

Viewing changes to debian/local.mk

  • Committer: Bazaar Package Importer
  • Author(s): Manoj Srivastava
  • Date: 2004-11-24 14:01:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041124140141-2w64gbhqynveunlv
Tags: 1.18-2
Update download location and copyright file, since the locations we
were pointing to are now forbidden (return a code 403).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
############################ -*- Mode: Makefile -*- ###########################
 
2
## local.mk --- 
 
3
## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
 
4
## Created On       : Sat Nov 15 10:42:10 2003
 
5
## Created On Node  : glaurung.green-gryphon.com
 
6
## Last Modified By : Manoj Srivastava
 
7
## Last Modified On : Fri Nov  5 00:44:01 2004
 
8
## Last Machine Used: glaurung.internal.golden-gryphon.com
 
9
## Update Count     : 6
 
10
## Status           : Unknown, Use with caution!
 
11
## HISTORY          : 
 
12
## Description      : 
 
13
## 
 
14
## arch-tag: b07b1015-30ba-4b46-915f-78c776a808f4
 
15
## 
 
16
###############################################################################
 
17
 
 
18
testdir:
 
19
        $(testdir)
 
20
 
 
21
 
 
22
BUILD/checkpolicy:: build/checkpolicy
 
23
INST/checkpolicy:: install/checkpolicy
 
24
BIN/checkpolicy:: binary/checkpolicy
 
25
 
 
26
CLN-common::
 
27
        $(REASON)
 
28
        -test ! -f Makefile || $(MAKE) clean
 
29
        $(MAKE) -C test clean
 
30
 
 
31
CLEAN/checkpolicy::
 
32
        -rm -rf $(TMPTOP)
 
33
 
 
34
build/checkpolicy:
 
35
        $(checkdir)
 
36
        $(REASON)
 
37
        $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
 
38
        $(MAKE) -C test CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
 
39
        touch stamp-build-checkpolicy
 
40
 
 
41
STAMPS_TO_CLEAN += stamp-build-checkpolicy
 
42
install/checkpolicy: testroot
 
43
        $(checkdir)
 
44
        $(REASON)
 
45
        rm -rf               $(TMPTOP)
 
46
        $(make_directory)    $(TMPTOP)
 
47
        $(make_directory)    $(BINDIR)
 
48
        $(make_directory)    $(MAN8DIR)
 
49
        $(make_directory)    $(DOCDIR)
 
50
        $(make_directory)    $(LINTIANDIR)
 
51
        $(MAKE)              DESTDIR=$(TMPTOP) install
 
52
        $(install_file)      debian/changelog       $(DOCDIR)/changelog.Debian
 
53
        $(install_file)      ChangeLog              $(DOCDIR)/changelog
 
54
        gzip -9frq           $(DOCDIR)/
 
55
# Make sure the copyright file is not compressed
 
56
        $(install_file)      debian/copyright       $(DOCDIR)/copyright
 
57
        gzip -9fqr           $(MANDIR)/
 
58
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
59
        strip --strip-unneeded --remove-section=.note --remove-section=.comment  $(BINDIR)/checkpolicy $(BINDIR)/genpolusers
 
60
endif
 
61
 
 
62
binary/checkpolicy: testroot
 
63
        $(checkdir)
 
64
        $(REASON)
 
65
        $(make_directory)    $(TMPTOP)/DEBIAN
 
66
        dpkg-shlibdeps       $(BINDIR)/checkpolicy  $(BINDIR)/genpolusers
 
67
        dpkg-gencontrol      -p$(package) -isp      -P$(TMPTOP)
 
68
        chown -R root:root   $(TMPTOP)
 
69
        chmod -R u+w,go=rX   $(TMPTOP)
 
70
        dpkg --build         $(TMPTOP) ..