wmaker: fix memory leak in the Workspace Map if there is no workspace (Coverity ...
[wmaker-crm.git] / doc / build / Makefile.am
blobdc656e98e154545d15db824bf134bc55c98085ca
1 # The list of sources are distributed, but none are to be
2 # installed along with Window Maker:
3 EXTRA_DIST = Readme \
4         Compilation.texi \
5         Translations.texi
7 # How to re-generate automatically the top-level text files
8 all-local: $(top_srcdir)/INSTALL-WMAKER $(top_srcdir)/README.i18n
10 # We also re-generate the documentation when "make dist" is used, because we cannot
11 # be assured that the doc currently present in the directory is up-to-date, for example
12 # if the user did not run "make (all)" for valid reason
13 dist-hook: $(top_srcdir)/INSTALL-WMAKER $(top_srcdir)/README.i18n
14         cp -f $(top_srcdir)/INSTALL-WMAKER $(top_distdir)/INSTALL-WMAKER
15         cp -f $(top_srcdir)/README.i18n $(top_distdir)/README.i18n
17 $(top_srcdir)/INSTALL-WMAKER: $(srcdir)/Compilation.texi $(top_srcdir)/script/generate-txt-from-texi.sh
18         $(AM_V_GEN)if test ! -e "$(top_srcdir)/INSTALL-WMAKER" -o -w "$(top_srcdir)/INSTALL-WMAKER" ; then \
19             $(top_srcdir)/script/generate-txt-from-texi.sh \
20                 $(srcdir)/Compilation.texi -o $(top_srcdir)/INSTALL-WMAKER \
21                 -Dversion="$(PACKAGE_VERSION)" -e "$(PACKAGE_BUGREPORT)" ; \
22         else \
23             echo "Warning: \"$(top_srcdir)/INSTALL-WMAKER\" is not writeable, not regenerated" ; \
24         fi
26 $(top_srcdir)/README.i18n: $(srcdir)/Translations.texi $(top_srcdir)/script/generate-txt-from-texi.sh
27         $(AM_V_GEN)if test ! -e "$(top_srcdir)/README.i18n" -o -w "$(top_srcdir)/README.i18n" ; then \
28             $(top_srcdir)/script/generate-txt-from-texi.sh \
29                 $(srcdir)/Translations.texi -o $(top_srcdir)/README.i18n \
30                 -Dversion="$(PACKAGE_VERSION)" -e "$(PACKAGE_BUGREPORT)" ; \
31         else \
32             echo "Warning: \"$(top_srcdir)/README.i18n\" is not writeable, not regenerated" ; \
33         fi