Makefile.am 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. ## Process this file with automake to produce Makefile.in
  2. # Copyright (C) 1999-2007, 2015, 2016 Free Software Foundation, Inc.
  3. #
  4. # This file is part of GNU JWhois.
  5. #
  6. # GNU JWhois is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # GNU JWhois is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with GNU JWhois. If not, see <http://www.gnu.org/licenses/>.
  18. ACLOCAL_AMFLAGS = -I m4
  19. SUBDIRS = lib po
  20. bin_PROGRAMS = jwhois
  21. noinst_LIBRARIES = src/libjwhois.a
  22. AM_CPPFLAGS = \
  23. -I$(top_srcdir)/src \
  24. -I$(top_srcdir)/lib \
  25. -I$(top_builddir)/lib \
  26. $(CODE_COVERAGE_CPPFLAGS)
  27. AM_CFLAGS = $(WARN_CFLAGS) $(CODE_COVERAGE_CFLAGS)
  28. LDADD = $(noinst_LIBRARIES) lib/libgnu.a $(CODE_COVERAGE_LIBS)
  29. jwhois_CFLAGS = $(AM_CFLAGS) $(WERROR_CFLAGS)
  30. jwhois_LDADD = $(LDADD) $(LIBINTL) $(LIBICONV) $(LIBS)
  31. jwhois_SOURCES = src/jwhois.c
  32. src_libjwhois_a_CFLAGS = $(AM_CFLAGS) $(WERROR_CFLAGS)
  33. src_libjwhois_a_SOURCES = \
  34. src/cache.c \
  35. src/cache.h \
  36. src/http.c \
  37. src/http.h \
  38. src/init.c \
  39. src/init.h \
  40. src/jconfig.c \
  41. src/jconfig.h \
  42. src/lookup.c \
  43. src/lookup.h \
  44. src/rwhois.c \
  45. src/rwhois.h \
  46. src/system.h \
  47. src/utils.c \
  48. src/utils.h \
  49. src/whois.c \
  50. src/whois.h
  51. sysconf_DATA = example/jwhois.conf
  52. info_TEXINFOS = doc/jwhois.texi
  53. doc_jwhois_TEXINFOS = doc/fdl-1.3.texi
  54. dist_man_MANS = doc/jwhois.1
  55. # Avoid re-generating the man pages when building from tarballs.
  56. if BUILD_FROM_GIT
  57. doc/jwhois.1: jwhois
  58. $(AM_V_GEN)$(MKDIR_P) `dirname "$@"`; \
  59. LANGUAGE= $(HELP2MAN) --output="$@" "$(top_builddir)/$<"
  60. endif
  61. TEST_EXTENSIONS = .sh
  62. SH_LOG_COMPILER = $(SHELL)
  63. AM_TESTS_ENVIRONMENT = \
  64. confdir='$(abs_top_srcdir)/example' \
  65. PATH="$(abs_top_builddir)$(PATH_SEPARATOR)$$PATH"
  66. TESTS = \
  67. tests/config.sh \
  68. $(check_PROGRAMS)
  69. check_PROGRAMS = \
  70. tests/utils_dump_arguments \
  71. tests/utils_strjoinv
  72. @CODE_COVERAGE_RULES@
  73. CODE_COVERAGE_BRANCH_COVERAGE = 1
  74. CODE_COVERAGE_DIRECTORY = src
  75. noinst_HEADERS = tests/macros.h
  76. EXTRA_DIST = \
  77. .prev-version \
  78. .version \
  79. ChangeLog.old \
  80. example/jwhois.conf \
  81. m4/gnulib-cache.m4 \
  82. README-hacking \
  83. tests/init.sh \
  84. $(TESTS)
  85. BUILT_SOURCES = .version
  86. .version:
  87. $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
  88. dist-hook: gen-ChangeLog
  89. $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
  90. gen_start_date = 2015-11-29
  91. .PHONY: gen-ChangeLog
  92. gen-ChangeLog:
  93. $(AM_V_GEN)if test -d $(srcdir)/.git; then \
  94. log_fix="$(srcdir)/build-aux/git-log-fix"; \
  95. test -e "$$log_fix" \
  96. && amend_git_log="--amend=$$log_fix" \
  97. || amend_git_log=; \
  98. $(top_srcdir)/build-aux/gitlog-to-changelog \
  99. $$amend_git_log --since=$(gen_start_date) > $(distdir)/cl-t && \
  100. { rm -f $(distdir)/ChangeLog && \
  101. mv $(distdir)/cl-t $(distdir)/ChangeLog; } \
  102. fi