language.i4 lexer.l.m4 tokens.h.m4
ALSOSHIP= system.default system.override \
spec.sgml overview.fig overview.ps \
- COPYING install-sh .cvsignore
-GENSHIP= lexer.l lexer.c tokens.h pcsum.h \
+ COPYING buildship install-sh .cvsignore
+GENSHIP= lexer.l lexer.c tokens.h configure config.h.in \
spec.html spec.ps overview.ps
SHIPTARGETS= $(SOURCES) $(ALSOSHIP) $(GENSHIP)
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
# 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
shipprep: $(SHIPTARGETS)
ship: $(SHIPTARGETS)
- rm -rf d && mkdir d && cp -av $^ d
- mv d userv-$(VERSION)
- GZIP=-9v tar zvvcf ../userv-$(VERSION).tar.gz userv-$(VERSION)
- rm -rf userv-$(VERSION)
+ rm -rf shipcheck
+ 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)
wc -l $^