Add generated man pages to DISTCLEANFILES
[wimlib] / Makefile.am
index ed45a7bca76a1eb132fb16ac0a291e967c3a290a..8592d076ad48fa97bda94892c815b8c9c2325636 100644 (file)
@@ -137,7 +137,7 @@ pkgconfig_DATA      = wimlib.pc
 
 $(pkgconfig_DATA): config.status
 
-man1_MANS =                                    \
+wimlib_manpages =                              \
        doc/@IMAGEX_PROGNAME@.1                 \
        doc/@IMAGEX_PROGNAME@-append.1          \
        doc/@IMAGEX_PROGNAME@-apply.1           \
@@ -154,6 +154,9 @@ man1_MANS =                                 \
        doc/@IMAGEX_PROGNAME@-unmount.1         \
        doc/mkwinpeimg.1
 
+man1_MANS = $(wimlib_manpages)
+DISTCLEANFILES = $(wimlib_manpages)
+
 $(man1_MANS): config.status
 
 check_PROGRAMS = tests/tree-cmp