chiark / gitweb /
Bugfix.
[userv.git] / Makefile.in
index be5687bafdb463213986fc6b69f8c89d657e4a0b..315583b60f8cde0c462a1dfbd6b053a0867f149d 100644 (file)
@@ -43,8 +43,8 @@ SOURCES=      Makefile.in configure.in acconfig.h                     \
                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 pcsum.h configure config.h.in \
                spec.html spec.ps overview.ps
 
 SHIPTARGETS=   $(SOURCES) $(ALSOSHIP) $(GENSHIP)
@@ -102,10 +102,12 @@ realclean:        distclean
 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 $^