@@ -164,8 +164,43 @@ info dvi ps pdf html tags TAGS ctags CTAGS ID:
164164
165165install-dvi install-ps install-pdf install-html:
166166
167- mostlyclean:
168- clean:
167+ distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
168+ dist distdir: all
169+ $(mkdir_p) $(distdir); \
170+ dists="$(POFILES) $(GMOFILES)"; \
171+ if test "$(PACKAGE)" = "gettext-tools"; then \
172+ dists="$$dists Makevars.template"; \
173+ fi; \
174+ if test -f $(srcdir)/POTFILES.in; then \
175+ dists="$$dists POTFILES.in"; \
176+ fi; \
177+ if test -f $(srcdir)/Makefile.in.in; then \
178+ dists="$$dists Makefile.in.in"; \
179+ fi; \
180+ if test -f $(srcdir)/Makevars; then \
181+ dists="$$dists Makevars"; \
182+ fi; \
183+ if test -f $(srcdir)/$(DOMAIN).pot; then \
184+ dists="$$dists $(DOMAIN).pot"; \
185+ fi; \
186+ if test -f $(srcdir)/ChangeLog; then \
187+ dists="$$dists ChangeLog"; \
188+ fi; \
189+ for i in 0 1 2 3 4 5 6 7 8 9; do \
190+ if test -f $(srcdir)/ChangeLog.$$i; then \
191+ dists="$$dists ChangeLog.$$i"; \
192+ fi; \
193+ done; \
194+ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
195+ for file in $$dists; do \
196+ if test -f $$file; then \
197+ cp -p $$file $(distdir) || exit 1; \
198+ else \
199+ cp -p $(srcdir)/$$file $(distdir) || exit 1; \
200+ fi; \
201+ done
202+
203+ mostlyclean clean:
169204 rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
170205 rm -fr *.o
171206
0 commit comments