Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor, prepare info directory for man page building

Signed-off-by: Sebastian Freundt <hroptatyr@fresse.org>
  • Loading branch information...
commit 84de6a142d51965cf4bf2210fa140bdbb64f8629 1 parent 6f36ec1
@hroptatyr authored
View
2  Makefile.am
@@ -44,7 +44,7 @@ SUBDIRS =
if DESCEND_LIBLTDL
SUBDIRS += libltdl
endif
-SUBDIRS += src test
+SUBDIRS += src info test
pkgconfigdir = @libdir@/pkgconfig
pkgconfig_DATA = libuterus.pc
View
1  configure.ac
@@ -46,6 +46,7 @@ AM_MISSING_PROG([HELP2MAN], [help2man], ["${missing_dir}"])
AC_CONFIG_FILES([libuterus.pc])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([src/Makefile])
+AC_CONFIG_FILES([info/Makefile])
AC_CONFIG_FILES([test/Makefile])
AC_OUTPUT
View
32 info/Makefile.am
@@ -0,0 +1,32 @@
+# Help the Developers and yourself. Just use the C locale and settings
+# for the compilation. They can still be overriden by make LANG=<whatever>
+# but that is general a not very good idea
+LANG=C
+LC_ALL=C
+
+BUILT_SOURCES =
+EXTRA_DIST = $(BUILT_SOURCES)
+
+man1_MANS =
+man1_MANS += $(built_mans)
+
+EXTRA_DIST += author.h2m
+BUILT_SOURCES += $(built_mans)
+
+## help2man helpers
+my_bld_man = $(__bld_man_$(V))
+__bld_man_ = $(__bld_man_$(AM_DEFAULT_VERBOSITY))
+__bld_man_0 = @echo " HELP2MAN" $*;
+%.man: $(top_srcdir)/src/%-clo.ggo $(top_srcdir)/configure
+ $(my_bld_man) $(HELP2MAN) -S "$(PACKAGE_STRING)" -p "($(PACKAGE))$*" \
+ -I "$(srcdir)/$*.h2m" -I "$(builddir)/$*.h2m" \
+ -I "$(srcdir)/author.h2m" \
+ -o $@ $(top_builddir)/src/$*
+
+my_bld_h2m = $(__bld_h2m_$(V))
+__bld_h2m_ = $(__bld_h2m_$(AM_DEFAULT_VERBOSITY))
+__bld_h2m_0 = @echo " GENH2M " $*;
+%.h2m: $(top_srcdir)/src/%-clo.ggo
+ $(my_bld_h2m) ${SHELL} \
+ $(srcdir)/genh2m.sh $(top_builddir)/src/$* \
+ $($*_EXAMPLES) > $@ || rm -f -- $@
View
6 info/author.h2m
@@ -0,0 +1,6 @@
+[AUTHOR]
+ Written by Sebastian Freundt <freundt@fresse.org>
+
+[BUGS]
+ Report them to: https://github.com/hroptatyr/uterus/issues
+
Please sign in to comment.
Something went wrong with that request. Please try again.