File: Makefile.in

package info (click to toggle)
dict-elements 19990120-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 256 kB
  • ctags: 46
  • sloc: sh: 1,424; ansic: 397; makefile: 196
file content (269 lines) | stat: -rw-r--r-- 7,701 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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
# Makefile.in -- Makefile for dict-wn
# Created: Sat Mar  8 15:41:40 1997 by faith@cs.unc.edu

# Revised: Sun Jul  5 19:48:20 1998 by faith@acm.org
# Copyright 1997, 1998 Rickard E. Faith (faith@acm.org)
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 1, or (at your option) any
# later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 675 Mass Ave, Cambridge, MA 02139, USA.
# 
# $Id: Makefile.in,v 1.8 1998/07/06 01:33:40 faith Exp $
#

VERSION=19990120
NAME=dict-elements

ifneq (,)
This makefile requires GNU Make.
endif

.SUFFIXES:	

srcdir=		@srcdir@
VPATH=		@srcdir@
prefix=		@prefix@
datadir=        @datadir@
dictdir=        $(datadir)/dict
subdirs=        @subdirs@
exec_prefix=	@exec_prefix@
man1_prefix=	$(prefix)/man/man1

SHELL=		/bin/sh

CC=		@CC@
CPP=		@CPP@
RANLIB=		@RANLIB@
INSTALL=	@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=	@INSTALL_DATA@
LEX=		@LEX@
LEXLIB= 	@LEXLIB@
YACC=		@YACC@
DICTZIP=        @DICTZIP@

CFLAGS=		@CFLAGS@
LDFLAGS=        @LDFLAGS@
XTRACFLAGS=     @WCFLAGS@ @XTRACFLAGS@ @DEFS@ @CPPFLAGS@ -I.
XTRALDFLAGS=    @WLDFLAGS@ @XTRALDFLAGS@
LDLIBS=		@LIBS@

EXES=	 	dictfmt

HEADERS= 	./config.h @XTRAHEADERS@

DATABASES=       elements.dict #
DATAINDICES=     dict elements.index

# all::
# 	  @for subdir in `echo $(subdirs)`; do \
# 		  echo making in $$subdir; \
# 		  (cd $$subdir && $(MAKE)) || exit 1; \
# 	  done

all:: $(EXES)

db :: $(DATABASES)

# easton.dict easton.index: dictfmt data/easton/easton-info.txt
# 	  cat data/easton/easton-info.txt data/easton/T*.html \
# 		  | sed 's,<A HREF=[^>]*>\([^<]*\).*</A>,{\1},g' \
# 		  | sed 's,\([A-Z][A-Z]*\) .T000[0-9]*,{\1},g' \
# 		  | ./dictfmt -e \
# 			  -u ftp://ccel.wheaton.edu/ebooks/HTML/e/easton/ebd/ \
# 			  -s "Easton's 1897 Bible Dictionary" easton
# 	  if [ "$(DICTZIP)" != "cat" ]; then \
# 		  dictzip easton.dict; \
# 	  fi
# 
# install.easton: easton.index
# #	install -m 755 -d $(dictdir) #debian/rules creates this directory
# 	  if [ -e easton.dict.dz ]; then \
# 		  install -m 644 easton.dict.dz $(dictdir); \
# 	  else \
# 		  install -m 644 easton.dict $(dictdir); \
# 	  fi
# 	  install -m 644 easton.index $(dictdir)
# 
# hitchcock.dict hitchcock.index: dictfmt data/bible_names.txt
# 	  ./dictfmt -h \
# 	     -u ftp://ccel.wheaton.edu/ebooks/HTML/bible_names/bible_names.txt \
# 	     -s "Hitchcock's Bible Names Dictionary (late 1800's)" \
# 	     hitchcock < data/bible_names.txt
# 	  if [ "$(DICTZIP)" != "cat" ]; then \
# 		  dictzip hitchcock.dict; \
# 	  fi
# 
# install.hitchcock: hitchcock.index
# 	install -m 755 -d $(dictdir) #debian/rules creates this directory
# 	  if [ -e hitchcock.dict.dz ]; then \
# 		  install -m 644 hitchcock.dict.dz $(dictdir); \
# 	  else \
# 		  install -m 644 hitchcock.dict $(dictdir); \
# 	  fi
# 	  install -m 644 hitchcock.index $(dictdir)
# 
# jargon.dict jargon.index: dictfmt data/jarg400.txt
# 	  ./dictfmt -j -u http://www.ccil.org/jargon \
# 		  -s "Jargon File (4.0.0/24 July 1996)" \
# 		  jargon < data/jarg400.txt
# 	  if [ "$(DICTZIP)" != "cat" ]; then \
# 		  dictzip jargon.dict; \
# 	  fi
# 
# install.jargon: jargon.index
# #	install -m 755 -d $(dictdir) #debian/rules creates this directory
# 	  if [ -e jargon.dict.dz ]; then \
# 		  install -m 644 jargon.dict.dz $(dictdir); \
# 	  else \
# 		  install -m 644 jargon.dict $(dictdir); \
# 	  fi
# 	  install -m 644 jargon.index $(dictdir)
# 
# foldoc.dict foldoc.index: dictfmt data/Dictionary
# 	  ./dictfmt -f -u ftp://wombat.doc.ic.ac.uk/foldoc/Dictionary.gz \
# 		  -s "The Free On-line Dictionary of Computing (15Feb98)" \
# 		  foldoc < data/Dictionary
# 	  if [ "$(DICTZIP)" != "cat" ]; then \
# 		  dictzip foldoc.dict; \
# 	  fi
# 
# install.foldoc: foldoc.index
# 	  install -m 755 -d $(dictdir)
# 	  if [ -e foldoc.dict.dz ]; then \
# 		  install -m 644 foldoc.dict.dz $(dictdir); \
# 	  else \
# 		  install -m 644 foldoc.dict $(dictdir); \
# 	  fi
# 	  install -m 644 foldoc.index $(dictdir)

elements.dict elements.index: dictfmt data/elements
	./dictfmt -p -u mailto:jkominek@debian.org \
		-s "The Elements (20Jan99)" \
		elements < data/elements
	if [ "$(DICTZIP)" != "cat" ]; then \
		dictzip elements.dict; \
	fi

install.elements: elements.index
#	install -m 755 -d $(dictdir)
	if [ -e elements.dict.dz ]; then \
		install -m 644 elements.dict.dz $(dictdir); \
	else \
		install -m 644 elements.dict $(dictdir); \
	fi
	install -m 644 elements.index $(dictdir)


pack: $(DATAINDICES)
	tar cvf /tmp/$(NAME)-$(VERSION)-pre.tar \
	        jargon.dict.dz jargon.index \
		foldoc.dict.dz foldoc.index \
		elements.dict.dz elements.index \
		easton.dict.dz easton.index \
		hitchcock.dict.dz hitchcock.index \
		world95.dict.dz world95.index
	gzip -f9 /tmp/$(NAME)-$(VERSION)-pre.tar

%.o: %.c
	$(CC) -c $(XTRACFLAGS) $(CFLAGS) $<

ALLFLAGS=$(XTRACFLAGS) $(CFLAGS) $(XTRALDFLAGS) $(LDFLAGS)
%: %.c
	$(CC) $(ALLFLAGS) -o $@ $< $(OBJS) $(LDLIBS)

$(OBJS):  $(HEADERS)

dictfmt: dictfmt.c $(HEADERS) $(OBJS)
	$(CC) $(ALLFLAGS) -o $@ $< $(OBJS) $(LDLIBS)

.PHONY: ChangeLog
ChangeLog:
	@(echo "***** Making new ChangeLog..."; \
	rm -f ChangeLog; \
	AWK=gawk rcs2log -i 2 > ChangeLog)

dist: ChangeLog
	@(NAME=$(NAME); \
	export NAME; \
	CVSROOT=`cat CVS/Root`; \
	export CVSROOT; \
	VERSION=$(VERSION); \
	export VERSION; \
	echo "***** Copying ChangeLog for $${NAME}-$${VERSION}..."; \
	cp ChangeLog /tmp; \
	echo "***** Exporting files for $${NAME}-$${VERSION}..."; \
	cd /tmp; \
	rm -rf /tmp/$${NAME}-$${VERSION} /tmp/$${NAME}-$${VERSION}.tar.gz; \
	cvs export -fNd $${NAME}-$${VERSION} -r HEAD $${NAME}; \
	cd $${NAME}-$${VERSION}; \
	make -f Makefile.conf; \
	mv ../ChangeLog .; \
	cd ..; \
	echo "***** Taring and zipping $${NAME}-$${VERSION}.tar.gz..."; \
	tar cvvf $${NAME}-$${VERSION}.tar $${NAME}-$${VERSION}; \
	gzip -9 $${NAME}-$${VERSION}.tar; \
	echo "***** Done making /tmp/$${NAME}-$${VERSION}.tar.gz")

.PHONY: clean distclean tags
clean:
	-rm -f *.o *.s *~ core a.out config.log $(EXES) $(TMPS)
	-rm -f *.log *.aux *.toc *.dvi *.ps
	-rm -f *.cfg *.dtk .inslog tca.map
	-rm -f *.dct *.idx y.output 	
	-rm -f *.dict* *.index

recursive-clean: clean
	@for subdir in `echo $(subdirs)`; do \
		echo making clean in $$subdir; \
		(cd $$subdir && $(MAKE) clean) || exit 1; \
	done

distclean: clean
# 	  @for subdir in `echo $(subdirs)`; do \
# 		  if [ "$subdir" != "zlib" ]; then \
# 			  echo making $@ in $$subdir; \
# 			  (cd $$subdir && $(MAKE) $@) || exit 1; \
# 		  fi \
# 	  done
	-rm -f config.h config.cache config.status stamp-h.in stamp-h
	-rm -f  Makefile
#       -rm -f configure Makefile # We want to keep configure
	-rm -f $(DATABASES) *.dict.dz $(DATAINDICES)

tags:
	etags *.[ch]


# The following is based on the "Automatic Remaking" node in the GNU
# Autoconf documentation:

$(srcdir)/configure: configure.in
	cd $(srcdir) && autoconf

# autoheader might not change config.h.in, so touch a stamp file.
${srcdir}/config.h.in: stamp-h.in
${srcdir}/stamp-h.in: configure.in
	cd ${srcdir} && autoheader
	date > ${srcdir}/stamp-h.in

config.h: stamp-h
stamp-h: config.h.in config.status
	./config.status

Makefile: Makefile.in config.status
	./config.status

config.status: configure
	./config.status --recheck