ADD_CUSTOM_COMMAND(OUTPUT gt.1.gz
		COMMAND a2x --format=manpage gt.1.txt
		COMMAND gzip gt.1)

ADD_CUSTOM_TARGET(manpage ALL DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/gt.1.gz)

INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/gt.1.gz DESTINATION /usr/share/man/man1)

ADD_CUSTOM_COMMAND(OUTPUT gt.1.gz
		COMMAND a2x --format=manpage --destination-dir=. ${CMAKE_CURRENT_SOURCE_DIR}/gt.1.txt
		COMMAND gzip gt.1)

ADD_CUSTOM_TARGET(manpage ALL DEPENDS gt.1.gz)

INSTALL(FILES gt.1.gz DESTINATION /usr/share/man/man1)

Fix manpage build in subdirectory
Fix manpage build in subdirectory

Change-Id: Ie98ca5a3310033cb8975fb6ffe39684831bd0540
Signed-off-by: Krzysztof Opasiak <8064eda6f94b3817252b7d7649cf754592f63500@samsung.com>
