X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=Makefile.in;h=1d21aa63c614502434ec17cc3ece25bcd3d6176c;hb=53b8465cf698d2885a11c587d6d012bef75f2650;hp=2a85e6106bb5f49a2cd20673f823ba09e1430a3a;hpb=6fa840b6d85a9d2bde633c1bd2a3021b5e2d21bf;p=userv.git diff --git a/Makefile.in b/Makefile.in index 2a85e61..1d21aa6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -44,7 +44,7 @@ SOURCES= Makefile.in configure.in acconfig.h \ ALSOSHIP= system.default system.override \ spec.sgml overview.fig overview.ps \ COPYING buildship install-sh .cvsignore -GENSHIP= lexer.l lexer.c tokens.h pcsum.h configure config.h.in \ +GENSHIP= lexer.l lexer.c tokens.h configure config.h.in \ spec.html spec.ps overview.ps SHIPTARGETS= $(SOURCES) $(ALSOSHIP) $(GENSHIP) @@ -64,7 +64,7 @@ daemon: daemon.o parserlexer.o ddebug.o lib.o lexer.l: language.i4 -client.o: config.h common.h pcsum.h +client.o: config.h common.h pcsum.h version.h daemon.o: config.h common.h pcsum.h daemon.h lib.h tokens.h @@ -76,9 +76,10 @@ parserlexer.o: lexer.c parser.c config.h common.h pcsum.h daemon.h lib.h tokens. # lexer.c #include's parser.c at the end. Blame flex. $(CC) -c $(CPPFLAGS) $(CFLAGS) lexer.c -o $@ -pcsum.h: common.h - md5sum common.h | perl -pe 's/../0x$$&,/g; s/,$$//;' \ - >pcsum.h.new && mv pcsum.h.new pcsum.h +pcsum.h: common.h version.h config.h config.status Makefile + cat $^ | md5sum | sed -e 's/../0x&,/g; s/,$$//;' >pcsum.h.new + cmp pcsum.h.new pcsum.h || mv -f pcsum.h.new pcsum.h + @rm -f pcsum.h.new tokens.h: language.i4 @@ -103,9 +104,10 @@ shipprep: $(SHIPTARGETS) ship: $(SHIPTARGETS) rm -rf shipcheck - mkdir shipcheck/userv-$(VERSION) - cp -av $^ shipcheck/userv-$(VERSION) - GZIP=-9v tar zvvcCf shipcheck userv-$(VERSION).tar.gz userv-$(VERSION) + mkdir -p shipcheck/userv-$(VERSION) + cp -a $^ shipcheck/userv-$(VERSION) + cd shipcheck && \ + GZIP=-9v tar zvvcf userv-$(VERSION).tar.gz userv-$(VERSION) rm -rf shipcheck/userv-$(VERSION) linecount: $(SOURCES)