File: local.mk

package info (click to toggle)
tla-tools 2005.0.patch.29-2
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 504 kB
  • ctags: 119
  • sloc: sh: 2,982; awk: 490; makefile: 63
file content (74 lines) | stat: -rw-r--r-- 2,173 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
############################ -*- 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 13:20:11 2006
## Last Machine Used: glaurung.internal.golden-gryphon.com
## Update Count     : 4
## Status           : Unknown, Use with caution!
## HISTORY          : 
## Description      : 
## 
## arch-tag: b07b1015-30ba-4b46-915f-78c776a808f4
## 
###############################################################################

testdir:
	$(testdir)

CONFIG-indep:: stamp-conf/tla-tools
BUILD/tla-tools:: build/tla-tools
INST/tla-tools::  install/tla-tools
BIN/tla-tools::   binary/tla-tools

CLEAN/tla-tools::
	test ! -d $(TMPTOP) || rm -rf $(TMPTOP)

stamp-conf/tla-tools:
	$(checkdir)
	$(REASON)
	test -x ./update-version || chmod a+x ./update-version
	test -f stamp-conf || ./configure --prefix=$(PREFIX) && \
           touch  stamp-conf

STAMPS_TO_CLEAN += stamp-conf

build/tla-tools: 
	$(checkdir)
	$(REASON)
	test -f stamp-build-tla-tools || $(MAKE) all
	touch stamp-build-tla-tools

STAMPS_TO_CLEAN += stamp-build-tla-tools

install/tla-tools: testroot
	$(REASON)
	$(checkdir)
	rm -rf $(TMPTOP)  $(TMPTOP).deb
	$(make_directory) $(BINDIR)
	$(make_directory) $(DOCDIR)
	$(MAKE)           prefix=$(TMPTOP)$(PREFIX) install
	$(install_file)   debian/changelog     $(DOCDIR)/changelog.Debian
	$(install_file)   ChangeLog            $(DOCDIR)/changelog
	$(install_file)   TODO                 $(DOCDIR)/
	$(install_file)   debian/README.Debian $(DOCDIR)/
	gzip -9frq        $(DOCDIR)/
# Make sure the copyright file is not compressed
	$(install_file)   debian/copyright     $(DOCDIR)/

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

#Local variables:
#mode: makefile
#End: