File: local.mk

package info (click to toggle)
flex-old 2.5.4a-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,868 kB
  • ctags: 1,162
  • sloc: ansic: 8,226; sh: 2,770; lex: 1,095; yacc: 605; makefile: 366; awk: 72; sed: 12
file content (166 lines) | stat: -rw-r--r-- 6,380 bytes parent folder | download | duplicates (2)
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
############################ -*- 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 Jan 19 12:02:25 2005
## Last Machine Used: glaurung.internal.golden-gryphon.com
## Update Count     : 19
## Status           : Unknown, Use with caution!
## HISTORY          : 
## Description      : 
## 
## arch-tag: b07b1015-30ba-4b46-915f-78c776a808f4
## 
###############################################################################

testdir:
	$(testdir)

CONFIG-common:: stamp-conf/flex-old

BUILD/flex-old:: build/flex-old
INST/flex-old:: install/flex-old
BIN/flex-old:: binary/flex-old

BUILD/flex-old-doc:: build/flex-old-doc
INST/flex-old-doc:: install/flex-old-doc
BIN/flex-old-doc:: binary/flex-old-doc

CLN-common::
	$(REASON)
	$(MAKE) clean -C po || true

CLEAN/flex-old::
	-rm -rf $(TMPTOP)

CLEAN/flex-old-doc::
	-rm -rf $(TMPTOP)

stamp-conf/flex-old:
	$(checkdir)
	$(REASON)
	ac_cv_lib_util_getloadavg=no ./configure   --verbose               \
                --prefix=$(PREFIX) $(confflags) && touch stamp-conf

STAMPS_TO_CLEAN += stamp-conf

build/flex-old:
	$(checkdir)
	$(REASON)
	bash -n debian/doc.postinst
	bash -n debian/doc.postrm
	bash -n debian/doc.prerm
	bash -n debian/postinst
	bash -n debian/prerm
	$(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
	$(MAKE) -C po
	$(MAKE) check
	touch stamp-build-flex-old

STAMPS_TO_CLEAN += stamp-build-flex-old

build/flex-old-doc:
	$(checkdir)
	$(REASON)
	test -d debian/html || mkdir debian/html
	(cd debian/html; \
	 texi2html -doctype html2 -expandinfo -glossary -menu \
	           -split_chapter -o . -verbose  \
                                        ../../MISC/texinfo/flex.texi)
	touch stamp-build-flex-old-doc

STAMPS_TO_CLEAN += stamp-build-flex-old-doc

install/flex-old-doc: testroot
	$(checkdir)
	$(REASON)
	rm -rf              $(TMPTOP)
	$(make_directory)   $(TMPTOP)
	$(make_directory)   $(DOCDIR)
	$(make_directory)   $(MENUDIR)
	$(make_directory)   $(DOCBASEDIR)
	$(install_file)     README                  $(DOCDIR)/README
	$(install_file)     NEWS                    $(DOCDIR)/NEWS
	$(install_file)     debian/changelog        $(DOCDIR)/changelog.Debian
	gzip -9fqr          $(DOCDIR)/
# Make sure the copyright file is not compressed
	$(install_file)     debian/copyright        $(DOCDIR)/copyright
	$(install_file)     debian/html/flex_*.html $(DOCDIR)/
	ln -s 		  flex_toc.html           $(DOCDIR)/index.html;
	ln -s               NEWS.gz                 $(DOCDIR)/changelog.gz 
	$(install_file)     debian/menuentry        $(MENUDIR)/$(package)
	$(install_file)     debian/docentry         $(DOCBASEDIR)/$(package)

install/flex-old: testroot
	$(checkdir)
	$(REASON)
	rm -rf               $(TMPTOP)
	$(make_directory)    $(TMPTOP)
	$(make_directory)    $(BINDIR)
	$(make_directory)    $(LIBDIR)
	$(make_directory)    $(INFODIR)
	$(make_directory)    $(MAN1DIR)
	$(make_directory)    $(DOCDIR)
	$(make_directory)    $(LINTIANDIR)
	echo 'flex-old: description-synopsis-might-not-be-phrased-properly'>> \
                              $(LINTIANDIR)/$(package)
	$(MAKE)              $(INT_INSTALL_TARGET)  prefix=$(TMPTOP)/usr \
	                     infodir=$(INFODIR)     mandir=$(MAN1DIR)    \
                              INSTALL_PROGRAM="$(install_program)"
	$(MAKE) install      -C po                  prefix=$(TMPTOP)/usr
	(cd MISC/texinfo &&  makeinfo               --no-split flex.texi;)
	$(install_file)      MISC/texinfo/flex.info $(INFODIR)
	$(install_file)      README                 $(DOCDIR)/README
	$(install_file)      NEWS                   $(DOCDIR)/NEWS
	$(install_file)      debian/changelog       $(DOCDIR)/changelog.Debian
	gzip -9frq           $(DOCDIR)/
# Make sure the copyright file is not compressed
	$(install_file)      debian/copyright       $(DOCDIR)/copyright
	gzip -9fqr           $(MANDIR)/
	gzip -9fq            $(INFODIR)/flex.info*
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
	find $(TMPTOP) -type f | while read i; do                                        \
           if file -b $$i | egrep -q "^ELF.*executable"; then                             \
             strip --strip-all --remove-section=.comment --remove-section=.note $$i;      \
           fi;                                                                            \
         done
	find $(TMPTOP) -type f | while read i; do                                        \
           if file -b $$i | egrep -q "^ELF.*shared object"; then                          \
             strip --strip-unneeded --remove-section=.comment --remove-section=.note $$i; \
           fi;                                                                            \
         done
endif
	ln -s 	             NEWS.gz               $(DOCDIR)/changelog.gz
	ln -s                flex.1.gz              $(MAN1DIR)/lex.1.gz
	ln -s                flex.1.gz              $(MAN1DIR)/flex++.1.gz
	ln -s                flex                   $(BINDIR)/lex
	ln -s                libfl.a                $(LIBDIR)/libl.a

binary/flex-old-doc: testroot
	$(checkdir)
	$(REASON)
	$(make_directory)   $(TMPTOP)/DEBIAN
	$(install_script)    debian/doc.postinst     $(TMPTOP)/DEBIAN/postinst
	$(install_script)    debian/doc.postrm       $(TMPTOP)/DEBIAN/postrm
	$(install_script)    debian/doc.prerm        $(TMPTOP)/DEBIAN/prerm
	dpkg-gencontrol      -p$(package) -isp       -P$(TMPTOP)
	chown -R root:root   $(TMPTOP)
	chmod -R u+w,go=rX   $(TMPTOP)
	dpkg --build         $(TMPTOP) ..

binary/flex-old: testroot
	$(checkdir)
	$(REASON)
	$(make_directory)    $(TMPTOP)/DEBIAN
	$(install_script)    debian/postinst        $(TMPTOP)/DEBIAN/postinst
	$(install_script)    debian/prerm           $(TMPTOP)/DEBIAN/prerm
	k=`find $(TMPTOP) -type f | ( while read i; do          \
            if file -b $$i | egrep -q "^ELF.*executable.*dynamically linked" ; then   \
                j="$$j $$i";                                     \
            fi;                                                  \
         done; echo $$j; )`; dpkg-shlibdeps $$k
	dpkg-gencontrol      -p$(package) -isp      -P$(TMPTOP)
	chmod -R u+w,go=rX   $(TMPTOP)
	dpkg --build         $(TMPTOP) ..