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
|
###########################################################################
# LPRng - An Extended Print Spooler System
#
# Copyright 1988-1995 Patrick Powell, San Diego, CA
# papowell@astart.com
# See LICENSE for conditions of use.
#
###########################################################################
# MODULE: Makefile.in
# PURPOSE: top level Makefile for LPD Software
# $Id: Makefile.bsd.in,v 3.22 1998/01/08 09:52:27 papowell Exp $
##########################################################################
#**************###########**************
# You must use ANSI C and GNU Make!
#***************************************
SRC=@srcdir@
@SET_MAKE@
#=============================================================================
# List the directories you want to generate:
# DIRS for all, clean, etc.
# ALLDIRS for other such as documentation
#=============================================================================
DIRS= src man po
ALLDIRS= $(DIRS) ${SRC}/TESTSUPPORT ${SRC}/UTILS ${SRC}/HOWTO
all: $(DIRS)
# define default target
.PHONY: all warn \
TAGS clean uninstall install \
info dvi check \
realclean mostlyclean distclean \
dist ci cifiles FRC default newmake cifast
MAKETARGET=all
#force phony target to be made
# Note: all the lines to the next comment will be removed
# when generating the BSD version
$(ALLDIRS): FRC
(cd $@; $(MAKE) -f Makefile.bsd $(MAKEFLAGS) $(MAKETARGET))
FRC:
#install default versions of the lpd.conf and lpd.perm files
default:
cp ${SRC}/lpd.conf ${SRC}/lpd.perms /etc
###############################################################################
TAGS clean uninstall install:
$(MAKE) -f Makefile.bsd MAKETARGET=$@ $(DIRS)
info dvi check:
realclean mostlyclean distclean: clean
$(MAKE) MAKETARGET=$@ $(ALLDIRS)
-rm -f config.cache config.h config.log config.status Makefile Makefile.bsd
###############################################################################
ci: cifiles
for i in $(ALLDIRS); do \
if test ! -d $$i/RCS ; then \
mkdir $$i/RCS; \
fi; \
done; \
$(MAKE) MAKETARGET=$@ $(ALLDIRS)
cifiles: newmake
if test ! -d RCS ; then mkdir RCS; fi;
checkin() { \
ci $(CI) -l -mUpdate -t-Initial $$1; \
}; \
for i in *; do \
if test -f "$$i" ; then \
case "$$i" in \
config.h.in ) checkin $$i;; \
config.* ) ;; \
* ) checkin $$i ;; \
esac; \
fi; \
done;
newmake:
for i in Makefile.bsd.in */Makefile.bsd.in ; do \
d=`dirname $$i`; b=`basename $$i .bsd.in`; c=$${d}/$${b}.in; \
sed -e '/^#GNU/,/^#/d' -e 's/^#BSD.//' -e 's/$$>/$$>/' \
-e 's/^if/.if/' -e 's/^endif/.endif/' $$c >/tmp/Makefile.bsd.in; \
diff $$i /tmp/Makefile.bsd.in >/dev/null || cp /tmp/Makefile.bsd.in $$i;\
done
cifast: newmake
if test ! -d RCS ; then mkdir RCS; fi;
find . -type f -newer VERSION -print \
| sed \
-e '/\.orig$$/d' \
-e '/core$$/d' \
-e '/RCS/d' \
-e '/\.o$$/d' \
-e '/.*liblpr.a$$/d' \
-e '/.*checkpc$$/d' \
-e '/.*lpr$$/d' \
-e '/.*lpd$$/d' \
-e '/.*lpq$$/d' \
-e '/.*lprm$$/d' \
-e '/.*lpc$$/d' \
-e '/.*lpbanner$$/d' \
-e '/.*lpf$$/d' \
-e '/.*lpraccnt$$/d' \
-e '/.*monitor$$/d' \
-e '/.*server$$/d' \
-e '/.*client$$/d' \
-e '/.*old$$/d' \
-e '/.*line$$/d' \
-e '/.*auth$$/d' \
-e '/.*pgp$$/d' \
>/tmp/list
echo VERSION >>/tmp/list
# cat /tmp/list
- ci $(CI) -l -mUpdate -t-Initial `cat /tmp/list`;
###############################################################################
# Update the patch level when you make a new version
# do this before you start changes
# Don't even think about making this configurable, it is for
# distribution and update purposes only!
# Patrick Powell
###############################################################################
update:
DIR=`pwd | sed 's,.*/,,' `; \
echo "#define PATCHLEVEL " \"$$DIR\" >./src/include/patchlevel.h; \
sleep 1; \
echo $$DIR >VERSION ; \
cp configure.in /tmp/configure.in; \
D=`echo $$DIR | sed 's,.*-,,' ` ; \
sed "s,VERSION=.*,VERSION=$$D," </tmp/configure.in >configure.in; \
cp configure /tmp/configure; \
sed "s,VERSION=.*,VERSION=$$D," </tmp/configure >configure ;
(cd man; $(MAKE) update)
###############################################################################
# Make a gnutar distribution
# - note that not all the source tree is sent out
#
###############################################################################
shar:
DIR=`pwd | sed 's,.*/,,' `; \
cd ..; \
ls -l $${DIR}.tgz ; \
if [ ! -f $${DIR}.tgz ]; then \
echo You must make TAR file first; \
exit 1; \
fi; \
tar ztf $${DIR}.tgz | sed -e '/\/$$/d' | sort >/tmp/_a.list; \
head /tmp/_a.list; \
shar -S -n $${DIR} -a -s papowell@astart.com \
-c -o /tmp/$${DIR}-Part -l100 </tmp/_a.list; \
cat $${DIR}/README /tmp/$${DIR}-Part.01 >/tmp/_a.list; \
cat >/tmp/$${DIR}-Part.01 /tmp/_a.list; \
rm /tmp/_a.list
dist_list:
echo RCS >/tmp/X
if [ -n "$$NO" ]; then \
for i in $$NO ; do \
echo "*/$$i" >>/tmp/X; \
done; \
fi;
for i in Makefile.old Makefile.in.old \
'*src/Makefile' '*man/Makefile' \
'*TESTSUPPORT/Makefile' \
Makefile.bsd '*src/Makefile.bsd' '*man/Makefile.bsd' \
'*TESTSUPPORT/Makefile.bsd' ; do echo $$i >>/tmp/X; done;
echo core >>/tmp/X
echo '*core' >>/tmp/X
echo '*.orig' >>/tmp/X
echo '*.bak' >>/tmp/X
echo '*.rej' >>/tmp/X
echo '*.tex' >>/tmp/X
echo '*.ps' >>/tmp/X
echo '?' >>/tmp/X
echo '*.o' >>/tmp/X
echo '*.a' >>/tmp/X
echo '*,v' >>/tmp/X
echo '*intl/po2tbl.sed' >>/tmp/X
echo '*po/POTFILES' >>/tmp/X
for i in tags \
authenticate_pgp readfilecount removeoneline setupauth \
sserver sclient \
liblpr.a checkpc lpr lpd lpq lprm lpc lpbanner \
lpf lpraccnt monitor lp cancel lpstat \
; do \
echo "*/$$i" >>/tmp/X; \
done;
echo config.cache >>/tmp/X
echo config.status >>/tmp/X
echo config.log >>/tmp/X
echo config.h >>/tmp/X
DIR=`pwd | sed 's,.*/,,' `; \
cd ..; \
echo $${DIR}/Makefile >>/tmp/X;
# cat /tmp/X
dist: dist_list
DIR=`pwd | sed 's,.*/,,' `; \
cd ..; \
tar zXcf /tmp/X $${DIR}.tgz $${DIR}; \
md5 $${DIR}.tgz | pgp -fast -u papowell@astart > $${DIR}.tgz.md5
dist_doc: dist_list
echo src >>/tmp/X
echo LP_SIMULATION >>/tmp/X
echo UTILS >>/tmp/X
DIR=`pwd | sed 's,.*/,,' `; \
cd ..; \
tar zXcf /tmp/X $${DIR}_doc.tgz $${DIR}; \
md5 $${DIR}_doc.tgz > $${DIR}_doc.md5
dist_src: dist_list
echo man >>/tmp/X
DIR=`pwd | sed 's,.*/,,' `; \
cd ..; \
tar zXcf /tmp/X $${DIR}_src.tgz $${DIR}; \
md5 $${DIR}_src.tgz > $${DIR}_src.md5
|