- rm -f daemon client lexer.l lexer.c tokens.h pcsum.h
- rm -f overview.eps overview.ps
- rm -f spec.lout* spec.ps spec.text* lout.li
- rm -rf spec.html*
- rm -f *.o *~ core ./#*#
-
-distclean: clean
- rm -f config.status config.log Makefile config.h
-
-realclean: distclean
- rm -f configure config.h.in
-
-shipprep: $(SHIPTARGETS)
-
-ship: $(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)
+ find -name '*.orig' -o -name '*~' -o -name '.*~' \
+ -o -name '*#' -o -name '.#*' -o -name '*.bak' \
+ | xargs -r rm
+ rm -rf $(TARGETS) *.o core version.h
+ rm -f overview.eps
+ rm -f spec.lout* spec.text* spec.ps?* spec.sgml.new
+ rm -f lout.li *.ld *.lix *.ldx
+ rm -f userv-*.tar.gz vd/*
+
+distclean mostlyclean: clean
+ rm -f $(CONFIG_RESULTS)
+
+maintainer-clean: distclean
+ 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 .