- rm -rf $(GENSHIP_CLEAN)
-
-dist-prep: $(SHIPTARGETS)
-
-dist: $(SHIPTARGETS)
- 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)
+ rm -rf $(GENSHIP_CLEAN) spec.html/*.html
+
+dist-prep: $(GENSHIP)
+
+pre-checkin:
+ ./configure
+ $(MAKE) dist-prep
+
+dist_tmp=dist_tmp/userv-$(VERSION)
+dist_prune=\( -name CVS -o -name 'dist_tmp*' -o -name slash-etc -o -name vd \)
+dist: dist-prep distclean
+ rm -rf dist_tmp*
+ mkdir dist_tmp $(dist_tmp)
+ find $(dist_prune) -prune -o -type d -print | \
+ sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh
+ find $(dist_prune) -prune -o -type f -print | \
+ sed -e 's#.*#ln & $(dist_tmp)/&#' | sh
+ cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)`
+ gzip -9 $(dist_tmp).tar
+ mv $(dist_tmp).tar.gz .