From 68c5c109052610e5873e2160129d21a0ad94482d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 27 Jan 2014 22:33:04 -0800 Subject: [PATCH] build: Move man/Makefile.am into toplevel Makefile.am --- Makefile.am | 28 ++++++++++++++++++++++++++-- configure.ac | 1 - man/Makefile.am | 26 -------------------------- 3 files changed, 26 insertions(+), 29 deletions(-) delete mode 100644 man/Makefile.am diff --git a/Makefile.am b/Makefile.am index 526e196..3cc4deb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,8 +7,7 @@ SUBDIRS = \ shared \ src \ clients \ - tests \ - man + tests DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install @@ -154,5 +153,30 @@ EXTRA_DIST += $(protocol_sources) endif +man_MANS = weston.1 weston.ini.5 + +if ENABLE_DRM_COMPOSITOR +man_MANS += weston-drm.7 +endif + +MAN_SUBSTS = \ + -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \ + -e 's|__weston_modules_dir__|$(pkglibdir)|g' \ + -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \ + -e 's|__version__|$(PACKAGE_VERSION)|g' + +SUFFIXES = .1 .5 .7 .man + +%.1 %.5 %.7 : man/%.man + $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ + +EXTRA_DIST += \ + man/weston.man \ + man/weston-drm.man \ + man/weston.ini.man + +CLEANFILES += $(man_MANS) + + wayland_protocoldir = $(top_srcdir)/protocol include $(top_srcdir)/wayland-scanner.mk diff --git a/configure.ac b/configure.ac index 5691c85..e2218b9 100644 --- a/configure.ac +++ b/configure.ac @@ -490,7 +490,6 @@ AC_CONFIG_FILES([Makefile src/version.h src/weston.pc clients/Makefile - man/Makefile tests/Makefile]) AC_OUTPUT diff --git a/man/Makefile.am b/man/Makefile.am deleted file mode 100644 index 5fb030a..0000000 --- a/man/Makefile.am +++ /dev/null @@ -1,26 +0,0 @@ -man_MANS = weston.1 weston.ini.5 - -if ENABLE_DRM_COMPOSITOR -man_MANS += weston-drm.7 -endif - -MAN_SUBSTS = \ - -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \ - -e 's|__weston_modules_dir__|$(pkglibdir)|g' \ - -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \ - -e 's|__version__|$(PACKAGE_VERSION)|g' - -SUFFIXES = .1 .5 .7 .man - -.man.1: - $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ - -.man.5: - $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ - -.man.7: - $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ - -EXTRA_DIST = weston.man weston-drm.man weston.ini.man - -CLEANFILES = $(man_MANS) -- 2.7.4