EXTRA_DIST   = \
	Makefile \
	check_words.sh \
	expndflg.pl \
	freq-filter \
	freq-update \
	sortflags \
	speling-extract-synonyms

DISTFILES    = $(EXTRA_DIST)
srcdir      := .
top_distdir := ../$(PACKAGE)-$(VERSION)
distdir     := $(top_distdir)/scripts/

distdir: $(DISTFILES)
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  if test -d $$d/$$file; then \
	    cp -pr $$d/$$file $(distdir)/$$file; \
	  else \
	    test -f $(distdir)/$$file \
	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	    || cp -p $$d/$$file $(distdir)/$$file || :; \
	  fi; \
	done
