Commit 165eeb9c authored by Tobias Quathamer's avatar Tobias Quathamer

Add rule for markdown documentation

parent 29d7c457
......@@ -7,6 +7,10 @@ pkgconfig_DATA = iso-codes.pc
jsondir = $(pkgdatadir)/json
dist_json_DATA = $(wildcard $(srcdir)/data/*.json)
# Include the markdown documentation currently not handled
# by automake
dist_pkgdata_DATA = README.md
# Include the "bin" directory and the common Makefile snippet.
EXTRA_DIST = bin common.mk
......
......@@ -92,7 +92,8 @@ am__aclocal_m4_deps = $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
$(am__configure_deps) $(dist_json_DATA) $(am__DIST_COMMON)
$(am__configure_deps) $(dist_json_DATA) $(dist_pkgdata_DATA) \
$(am__DIST_COMMON)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
mkinstalldirs = $(install_sh) -d
......@@ -152,8 +153,9 @@ am__uninstall_files_from_dir = { \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
am__installdirs = "$(DESTDIR)$(jsondir)" "$(DESTDIR)$(pkgconfigdir)"
DATA = $(dist_json_DATA) $(pkgconfig_DATA)
am__installdirs = "$(DESTDIR)$(jsondir)" "$(DESTDIR)$(pkgdatadir)" \
"$(DESTDIR)$(pkgconfigdir)"
DATA = $(dist_json_DATA) $(dist_pkgdata_DATA) $(pkgconfig_DATA)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
am__recursive_targets = \
......@@ -184,7 +186,7 @@ CTAGS = ctags
CSCOPE = cscope
DIST_SUBDIRS = $(SUBDIRS)
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/iso-codes.pc.in \
COPYING ChangeLog INSTALL README TODO install-sh missing
COPYING ChangeLog INSTALL TODO install-sh missing
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
......@@ -317,6 +319,10 @@ pkgconfig_DATA = iso-codes.pc
jsondir = $(pkgdatadir)/json
dist_json_DATA = $(wildcard $(srcdir)/data/*.json)
# Include the markdown documentation currently not handled
# by automake
dist_pkgdata_DATA = README.md
# Include the "bin" directory and the common Makefile snippet.
EXTRA_DIST = bin common.mk
DISTCLEANFILES = $(pkgconfig_DATA)
......@@ -379,6 +385,27 @@ uninstall-dist_jsonDATA:
@list='$(dist_json_DATA)'; test -n "$(jsondir)" || list=; \
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
dir='$(DESTDIR)$(jsondir)'; $(am__uninstall_files_from_dir)
install-dist_pkgdataDATA: $(dist_pkgdata_DATA)
@$(NORMAL_INSTALL)
@list='$(dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
if test -n "$$list"; then \
echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \
$(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \
fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
done | $(am__base_list) | \
while read files; do \
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \
$(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \
done
uninstall-dist_pkgdataDATA:
@$(NORMAL_UNINSTALL)
@list='$(dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir)
install-pkgconfigDATA: $(pkgconfig_DATA)
@$(NORMAL_INSTALL)
@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
......@@ -699,7 +726,7 @@ check: check-recursive
all-am: Makefile $(DATA)
installdirs: installdirs-recursive
installdirs-am:
for dir in "$(DESTDIR)$(jsondir)" "$(DESTDIR)$(pkgconfigdir)"; do \
for dir in "$(DESTDIR)$(jsondir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(pkgconfigdir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-recursive
......@@ -754,7 +781,8 @@ info: info-recursive
info-am:
install-data-am: install-dist_jsonDATA install-pkgconfigDATA
install-data-am: install-dist_jsonDATA install-dist_pkgdataDATA \
install-pkgconfigDATA
install-dvi: install-dvi-recursive
......@@ -800,7 +828,8 @@ ps: ps-recursive
ps-am:
uninstall-am: uninstall-dist_jsonDATA uninstall-pkgconfigDATA
uninstall-am: uninstall-dist_jsonDATA uninstall-dist_pkgdataDATA \
uninstall-pkgconfigDATA
.MAKE: $(am__recursive_targets) install-am install-strip
......@@ -811,15 +840,16 @@ uninstall-am: uninstall-dist_jsonDATA uninstall-pkgconfigDATA
distcheck distclean distclean-generic distclean-tags \
distcleancheck distdir distuninstallcheck dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-dist_jsonDATA install-dvi \
install-dvi-am install-exec install-exec-am install-html \
install-html-am install-info install-info-am install-man \
install-pdf install-pdf-am install-pkgconfigDATA install-ps \
install-ps-am install-strip installcheck installcheck-am \
installdirs installdirs-am maintainer-clean \
install-data-am install-dist_jsonDATA install-dist_pkgdataDATA \
install-dvi install-dvi-am install-exec install-exec-am \
install-html install-html-am install-info install-info-am \
install-man install-pdf install-pdf-am install-pkgconfigDATA \
install-ps install-ps-am install-strip installcheck \
installcheck-am installdirs installdirs-am maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
pdf-am ps ps-am tags tags-am uninstall uninstall-am \
uninstall-dist_jsonDATA uninstall-pkgconfigDATA
uninstall-dist_jsonDATA uninstall-dist_pkgdataDATA \
uninstall-pkgconfigDATA
.PRECIOUS: Makefile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment