Skip to content

Commit d78b312

Browse files
committed
autopoint: support dist target to release tarballs
follow #43. closed #43. though it's not our goal to support releasing, it's not so much code.
1 parent 73fc3e7 commit d78b312

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

data/autopoint_Makefile.in

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,43 @@ info dvi ps pdf html tags TAGS ctags CTAGS ID:
164164

165165
install-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

Comments
 (0)