File: local.mk

package info (click to toggle)
liblog-log4perl-perl 1.07-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,456 kB
  • ctags: 418
  • sloc: perl: 4,972; sh: 29; makefile: 11
file content (93 lines) | stat: -rw-r--r-- 3,087 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
############################ -*- Mode: Makefile -*- ###########################
## local.mk --- 
## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
## Created On       : Sat Nov 15 10:42:10 2003
## Created On Node  : glaurung.green-gryphon.com
## Last Modified By : Manoj Srivastava
## Last Modified On : Wed Sep  6 12:52:05 2006
## Last Machine Used: glaurung.internal.golden-gryphon.com
## Update Count     : 9
## Status           : Unknown, Use with caution!
## HISTORY          : 
## Description      : 
## 
## arch-tag: b07b1015-30ba-4b46-915f-78c776a808f4
## 
###############################################################################

testdir:
	$(testdir)

CONFIG-common:: stamp-conf/liblog-log4perl-perl

BUILD/liblog-log4perl-perl:: build/liblog-log4perl-perl
INST/liblog-log4perl-perl:: install/liblog-log4perl-perl
BIN/liblog-log4perl-perl:: binary/liblog-log4perl-perl

CLN-common::
	$(REASON)
	test ! -f Makefile || $(MAKE) realclean

CLEAN/liblog-log4perl-perl::
	$(REASON)
	-rm -rf $(TMPTOP)

stamp-conf/liblog-log4perl-perl:
	$(checkdir)
	$(REASON)
	test -f stamp-conf ||                                \
            $(PERL) Makefile.PL $(CONFIG) && touch stamp-conf

STAMPS_TO_CLEAN += stamp-build-flex

build/liblog-log4perl-perl: stamp-build-liblog-log4perl-perl

stamp-build-liblog-log4perl-perl:
	$(checkdir)
	$(REASON)
	$(MAKE)
	$(MAKE) test
	dpkg -l perl 'libc*' make dpkg-dev | \
          awk '$$1 == "ii" { printf("%s-%s\n", $$2, $$3) }' > \
           debian/buildinfo
	touch $@

STAMPS_TO_CLEAN += stamp-build-liblog-log4perl-perl

install/liblog-log4perl-perl: testroot
	$(checkdir)
	$(REASON)
	rm -rf $(TMPTOP)
	$(make_directory)   $(TMPTOP)
	chmod g-s           $(TMPTOP)
	$(make_directory)   $(MAN3DIR)
	$(make_directory)   $(DOCDIR)/examples
	$(make_directory)   $(LINTIANDIR)
	echo   "$(package): description-synopsis-might-not-be-phrased-properly" \
                     >> $(LINTIANDIR)/$(package)
	$(install_file)     debian/changelog $(DOCDIR)/changelog.Debian
	$(install_file)     README           $(DOCDIR)/README
	$(install_file)     Changes          $(DOCDIR)/changelog
	$(install_file)     debian/README    $(DOCDIR)/README.Debian
	$(install_file)     debian/buildinfo $(DOCDIR)/buildinfo.Debian
	gzip -9qfr          $(FILES_TO_COMPRESS)
# Make sure the copyright file is not compressed
	$(install_file)     debian/copyright $(DOCDIR)/copyright
	$(MAKE)             PREFIX=$(TMPTOP)/usr install
	gzip -9qfr          $(MAN3DIR)
	$(install_file)     eg/*             $(DOCDIR)/examples
	find $(TMPTOP)/usr/lib/  -type f -name .packlist -exec rm {} \;
	find $(INSTALLVENDORLIB) -type f -exec chmod 0644 {} \;
	find $(TMPTOP) -type d -name .arch-ids -print0 | xargs -0r rm -rf

binary/liblog-log4perl-perl: testroot
	$(checkdir)
	$(REASON)
	$(make_directory)  $(TMPTOP)/DEBIAN
	dpkg-gencontrol    -p$(package) -isp      -P$(TMPTOP)
	$(create_md5sum)   $(TMPTOP)
	chmod -R           u+w                    $(TMPTOP)/usr/
	chown -R root:root $(TMPTOP)
	chmod -R u+w,go=rX $(TMPTOP)
	dpkg --build       $(TMPTOP) ..