4 echo "Extracting Makefile (with variable substitutions)"
5 cat >Makefile <<!GROK!THIS!
6 # $Header: Makefile.SH,v 2.0.1.2 88/06/22 20:43:40 lwall Locked $
8 # $Log: Makefile.SH,v $
9 # Revision 2.0.1.2 88/06/22 20:43:40 lwall
10 # patch12: config.h now depends on config.h.SH
12 # Revision 2.0.1.1 88/06/03 15:00:48 lwall
13 # patch10: upgraded to match some new metaconfig stuff
15 # Revision 2.0 86/09/17 15:36:15 lwall
16 # Baseline for netwide release.
18 # Revision 1.2 86/09/08 14:07:42 lwall
21 # Revision 1.1 86/08/01 20:18:35 lwall
35 cat >>Makefile <<'!NO!SUBS!'
42 c = patch.c pch.c inp.c util.c version.c backupfile.c
44 obj = patch.o pch.o inp.o util.o version.o backupfile.o
48 addedbyconf = Makefile Makefile.old bsd config.h config.sh eunice loc pdp11 usg v7
54 $(CC) -c $(CFLAGS) $(LARGE) $*.c
56 all: $(public) $(private) $(util)
60 $(CC) $(LDFLAGS) $(obj) $(libs) -o patch
68 -mv $(bin)/patch $(bin)/patch.old
70 chmod 755 $(bin)/patch
71 -cp patch.man $(mansrc)/patch.$(manext)
74 rm -f $(bin)/patch $(mansrc)/patch.$(manext)
75 test ! -f $(bin)/patch.old || mv $(bin)/patch.old $(bin)/patch
88 DISTFILES=ChangeLog Configure EXTERN.h INTERN.h MANIFEST Makefile.SH \
89 README common.h config.H config.h.SH inp.c inp.h malloc.c patch.c patch.man \
90 patchlevel.h pch.c pch.h util.c util.h version.c version.h backupfile.c \
94 echo patch-2.0.`sed -e '/PATCHLEVEL/!d' -e 's/[^0-9]*\([0-9a-z.]*\).*/\1/' -e q patchlevel.h` > .fname
97 ln $(DISTFILES) `cat .fname`
98 tar chZf `cat .fname`.tar.Z `cat .fname`
99 rm -rf `cat .fname` .fname
101 # The following lint has practically everything turned on. Unfortunately,
102 # you have to wade through a lot of mumbo jumbo that can't be suppressed.
103 # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
107 lint $(lintflags) $(defs) $(c) > patch.fuzz
109 patch.o: config.h common.h patch.c inp.h pch.h util.h version.h backupfile.h
110 pch.o: config.h common.h pch.c pch.h util.h
111 inp.o: config.h common.h inp.c inp.h util.h
112 util.o: config.h common.h util.c util.h backupfile.h
113 version.o: config.h common.h version.c version.h patchlevel.h util.h
114 backupfile.o: config.h backupfile.c backupfile.h