diff options
Diffstat (limited to 'man/Makefile.am')
-rw-r--r-- | man/Makefile.am | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/man/Makefile.am b/man/Makefile.am new file mode 100644 index 00000000..e4abd8c4 --- /dev/null +++ b/man/Makefile.am @@ -0,0 +1,25 @@ +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|__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) |