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
|
#
#
# ============================================================================
#
# 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.7 1996/10/14 20:19:01 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@
#
# install program. use our own, as AC_PROG_INSTALL doesn't work reliably
#
INSTALL = @srcdir@/install-sh
INSTALL_PROGRAM = ${INSTALL} -c
INSTALL_DATA = ${INSTALL} -c -m 644
#
# 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:
/bin/test -r ./Makefile
/bin/test "x`/bin/hostname`" = "xrose"
/bin/test ! -r uudeview-$(VERSION).$(PATCH)
cvs export -r release-`echo $(VERSION).$(PATCH) | sed -e 's/\\./-/g'` \
-d uudeview-$(VERSION).$(PATCH) uudeview
rm -rf uudeview-$(VERSION).$(PATCH)/temp
tar cf uudeview-$(VERSION).$(PATCH).tar uudeview-$(VERSION).$(PATCH)
gzip -9 uudeview-$(VERSION).$(PATCH).tar
rm -rf uudeview-$(VERSION).$(PATCH)
chmod 644 uudeview-$(VERSION).$(PATCH).tar.gz
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) CC='$(CC)' CFLAGS='$(CFLAGS)' LIBS='$(LIBS)' )
xdeview: tcl/config.h libuu.a
(cd tcl; $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS)' LIBS='$(LIBS)' )
libuu.a: uulib/config.h
(cd uulib; $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS)' LIBS='$(LIBS)' )
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 $(MANDIR)/man1/$$d ; \
done
install-uudeview: uudeview
for d in uudeview uuenview ; do \
$(INSTALL_PROGRAM) unix/$$d $(BINDIR)/$$d ; \
done
install-tcl: xdeview
for d in xdeview uuwish ; do \
$(INSTALL_PROGRAM) tcl/$$d $(BINDIR)/$$d ; \
done
install-minews: minews
for d in minews ; do \
$(INSTALL_PROGRAM) inews/$$d $(BINDIR)/$$d ; \
done
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)
|