From b75293a565b6f319435516fe253bd61688ba3a1f Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 23 Dec 2015 01:32:04 +0100 Subject: build: makefile improvements --- Makefile.am | 15 +++++++++++++-- configure.ac | 4 +++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 4a28b8b..78738cc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -118,7 +118,15 @@ blogc.1: man/blogc.1.ronn --manual "$(PACKAGE_NAME) Manual" \ $< > $@ -blogc%.7: man/blogc%.7.ronn +blogc-source.7: man/blogc-source.7.ronn + $(AM_V_GEN)$(RONN) \ + --roff \ + --pipe \ + --organization "Rafael G. Martins" \ + --manual "$(PACKAGE_NAME) Manual" \ + $< > $@ + +blogc-template.7: man/blogc-template.7.ronn $(AM_V_GEN)$(RONN) \ --roff \ --pipe \ @@ -131,7 +139,10 @@ else blogc.1: $(AM_V_GEN)echo "error: ronn not found. failed to build man page: $@"; exit 1 -blogc%.7: +blogc-source.7: + $(AM_V_GEN)echo "error: ronn not found. failed to build man page: $@"; exit 1 + +blogc-template.7: $(AM_V_GEN)echo "error: ronn not found. failed to build man page: $@"; exit 1 endif diff --git a/configure.ac b/configure.ac index 3779c31..3cfb07d 100644 --- a/configure.ac +++ b/configure.ac @@ -4,13 +4,15 @@ AC_INIT([blogc], [0.5.1], [https://github.com/blogc/blogc], [blogc], [https://bl AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) -AM_INIT_AUTOMAKE([1.13 foreign dist-bzip2 dist-xz dist-zip subdir-objects serial-tests]) +AM_INIT_AUTOMAKE([1.13 foreign dist-bzip2 dist-xz dist-zip subdir-objects serial-tests -Wall -Werror]) AC_CONFIG_HEADERS([config.h]) AM_SILENT_RULES([yes]) AM_MAINTAINER_MODE([enable]) AC_USE_SYSTEM_EXTENSIONS +AM_PROG_AR + LT_INIT AC_PROG_CC_C99 -- cgit v1.2.3-18-g5258