diff options
Diffstat (limited to 'doc/man/Makefile.am')
-rw-r--r-- | doc/man/Makefile.am | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am index 8be27840..c54c16b6 100644 --- a/doc/man/Makefile.am +++ b/doc/man/Makefile.am @@ -3,7 +3,7 @@ if MAN_PAGES_ENABLED MAN_IN_FILES = hald.8.in lshal.1.in hal-get-property.1.in hal-set-property.1.in hal-find-by-property.1.in hal-find-by-capability.1.in hal-is-caller-locked-out.1.in hal-lock.1.in hal-disable-polling.1.in -man_MANS = hald.8 lshal.1 hal-get-property.1 hal-set-property.1 hal-find-by-property.1 hal-find-by-capability.1 hal-is-caller-locked-out.1 hal-lock.1 hal-disable-polling.1 +man_MANS = $(MAN_IN_FILES:.in=) endif # MAN_PAGES_ENABLED @@ -11,3 +11,12 @@ EXTRA_DIST=$(man_MANS) $(MAN_IN_FILES) clean-local: rm -f *~ *.1 *.8 + +%: %.in Makefile + $(edit) $< >$@ + +edit = sed \ + -e 's|@docdir[@]|$(docdir)|g' \ + -e 's|@sbindir[@]|$(sbindir)|g' \ + -e 's|@sysconfdir[@]|$(sysconfdir)|g' + |