File: Makefile.in

package info (click to toggle)
uudeview 0.5.20-12
  • links: PTS
  • area: main
  • in suites:
  • size: 2,504 kB
  • sloc: ansic: 12,144; sh: 2,754; makefile: 357; awk: 13
file content (208 lines) | stat: -rw-r--r-- 5,210 bytes parent folder | download | duplicates (9)
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
#
#
# ============================================================================
#
# This is the Makefile for the uudeview package, including the uudeview
# decoding, the uuenview encoding program, and a mini-inews that can be
# used by uuencode to post directly to the usenet.
# The values here were guessed by ./configure and are probably correct.
#                                        fp@informatik.uni-frankfurt.de
#
# Usefull targets
#	all		Compile the package
#	install		Install the binaries and manual pages
#	clean		Deletes the binaries and objects and all the
#			other dirty stuff.
#	tar		Packages everything neatly into a tar.gz file
#			for distribution.
#
# ============================================================================
#
# $Id: Makefile.in,v 1.12 2003/04/12 23:49:38 fp Exp $
#
# your make might need this
#
SHELL	=	/bin/sh
# 
# Source and Installation Paths
#
prefix	=	@prefix@
exec_prefix =	@exec_prefix@
srcdir =	@srcdir@
VPATH =		@srcdir@
#
# Where you want the binaries and the manual pages installed
#
bindir	=	@bindir@
mandir	=	@mandir@
BINDIR	=	$(bindir)
MANDIR	=	$(mandir)
DESTDIR =
#
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
#
# If you don't have the GNU C compiler installed, set CC=cc here
#
CC	=	@CC@
#
# C Compiler Options
#
CFLAGS	=	@CFLAGS@ -I@srcdir@ @CPPFLAGS@ @DEFS@
#
# Libraries to link and their paths
#
LIBS	=	@LDFLAGS@ @LIBS@
#
# the ranlib program
#
RANLIB =	@RANLIB@
#
# how to link files
#
LN	=	@LN_S@
#
# shared library stuff, if available. not yet active. i first need to
# find someone who can really explain this to me.
#
SHLIB_CFLAGS =	@SHLIB_CFLAGS@
SHLIB_LD =	@SHLIB_LD@
SHLIB_SUFFIX =	@SHLIB_SUFFIX@
SHLIB_VERSION =	@SHLIB_VERSION@
#
###############################################################################
# You shouldn't have to change anything below.
###############################################################################
#
# Programs to compile, Manpages to install and Versions
#
PROGS	=	@PROGS@
DOINST	=	@DOINST@
MPAGES	=	@MPAGES@
#
VERSION	=	@VERSION@
PATCH	=	@PATCH@
#
@SET_MAKE@
#
# make stuff
#

.SUFFIXES:
.SUFFIXES: .c .o

all:		$(PROGS)

clean:
	-(cd uulib ; $(MAKE) clean)
	-(cd unix  ; $(MAKE) clean)
	-(cd tcl   ; $(MAKE) clean)
	-(cd inews ; $(MAKE) clobber)
	rm -f uudeview uuenview minews [Xx]deview gif2gfp
	rm -f *.o *.a *.so core *~ TAGS

distclean:	clean
	-(cd uulib ; $(MAKE) distclean)
	-(cd unix  ; $(MAKE) distclean)
	-(cd tcl   ; $(MAKE) distclean)
	-if test -d doc ; then (cd doc ; $(MAKE) distclean) ; fi
	rm -f config.status config.cache config.log
	rm -f uulib/config.h uulib/Makefile
	rm -f unix/config.h unix/Makefile
	rm -f tcl/config.h tcl/Makefile
	rm -f Makefile config.h
	rm -f uudeview-*tar* uudeview-sfx*

realclean:	distclean

new:		clean
	rm -f uudeview uuenview [Xx]deview
	$(MAKE) all

dist:		tar
	mv uudeview-$(VERSION).$(PATCH).tar.gz ../dist/
	chmod 644 ../dist/uudeview-$(VERSION).$(PATCH).tar.gz

tar:
	test -r ./Makefile
	test "x`/bin/hostname`" = "xrose"
	test ! -r uudeview-$(VERSION).$(PATCH)
	mkdir foo
	(cd foo ; \
	cvs export -r release-`echo $(VERSION).$(PATCH) | sed -e 's/\\./-/g'` \
		-d uudeview-$(VERSION).$(PATCH) uudeview)
	rm -rf foo/uudeview-$(VERSION).$(PATCH)/temp
	(cd foo ; \
	tar cf ../uudeview-$(VERSION).$(PATCH).tar uudeview-$(VERSION).$(PATCH))
	gzip -9 uudeview-$(VERSION).$(PATCH).tar
	chmod 644 uudeview-$(VERSION).$(PATCH).tar.gz
	rm -rf foo

sfx:
	if test ! -r uudeview-$(VERSION).$(PATCH).tar.gz ; then \
		$(MAKE) tar ; \
	fi
	rm -f uudeview-sfx*
	dd if=wrapper.sh of=uudeview-sfx-$(VERSION).$(PATCH).sh bs=1k count=12
	cat uudeview-$(VERSION).$(PATCH).tar.gz >> uudeview-sfx-$(VERSION).$(PATCH).sh
	chmod 755 uudeview-sfx*

patch:
	if test "x$(V)" = "x" ; then \
		echo usage: $(MAKE) patch V=0.1.2 ; \
		exit 1 ; \
	fi
	cvs export -r release-`echo $(V) | sed -e 's/\\./-/g'` \
		-d uudeview-$(V) uudeview
	cvs export -r release-`echo $(VERSION).$(PATCH) | sed -e 's/\\./-/g'` \
		-d uudeview-$(VERSION).$(PATCH) uudeview
	rm -rf uudeview-$(V)/temp
	rm -rf uudeview-$(VERSION).$(PATCH)/temp
	diff -u -r -N uudeview-$(V) uudeview-$(VERSION).$(PATCH) \
		| gzip -9c > uudeview-$(V)-$(VERSION).$(PATCH).diff.gz
	rm -rf uudeview-$(V)
	rm -rf uudeview-$(VERSION).$(PATCH)
	chmod 644 uudeview-$(V)-$(VERSION).$(PATCH).diff.gz

uudeview:	unix/config.h libuu.a
	(cd unix ; $(MAKE))

xdeview:	tcl/config.h libuu.a
	(cd tcl ; $(MAKE))

libuu.a:	uulib/config.h
	(cd uulib ; $(MAKE))

minews:
	(cd inews; $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS)' LIBS='$(LIBS)' )

doc:
	(cd doc; $(MAKE) ps)

install: 		$(DOINST)
	-for d in $(MPAGES) ; do \
		$(INSTALL_DATA) $(srcdir)/man/$$d $(DESTDIR)$(MANDIR)/man1/$$d ; \
	done

install-uudeview:	uudeview
	(cd unix && $(MAKE) install)

install-tcl:		xdeview
	(cd tcl && $(MAKE) install)

install-minews:		minews
	(cd inews && $(MAKE) install)

links:		tcl/config.h unix/config.h uulib/config.h

tcl/config.h:	config.h
	(cd tcl; rm -f config.h ; $(LN) ../config.h config.h)

unix/config.h:	config.h
	(cd unix; rm -f config.h ; $(LN) ../config.h config.h)

uulib/config.h:	config.h
	(cd uulib; rm -f config.h ; $(LN) ../config.h config.h)