aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-12-23 01:32:04 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-12-23 01:32:04 +0100
commitb75293a565b6f319435516fe253bd61688ba3a1f (patch)
tree31b3d9a6f9f6144b08b852d016b5b4bdfce553ef
parent17171f9316e749b8280d0f91f5765c82b86be5a9 (diff)
downloadblogc-b75293a565b6f319435516fe253bd61688ba3a1f.tar.gz
blogc-b75293a565b6f319435516fe253bd61688ba3a1f.tar.bz2
blogc-b75293a565b6f319435516fe253bd61688ba3a1f.zip
build: makefile improvements
-rw-r--r--Makefile.am15
-rw-r--r--configure.ac4
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