diff --git a/Make.rules.in b/Make.rules.in index 7cffd10fcc8..8d2c0cf3b6c 100644 --- a/Make.rules.in +++ b/Make.rules.in @@ -28,10 +28,6 @@ depend: dummy .PHONY: depend -# Rules for man pages - -all: $(MANPAGES:.man.in=.man) - # Rules for cleaning clean:: diff --git a/tools/makedep.c b/tools/makedep.c index 1216ff6abc9..58e9646ed99 100644 --- a/tools/makedep.c +++ b/tools/makedep.c @@ -1530,9 +1530,10 @@ static struct strarray output_sources(void) dir, dest, source->sourcename ); free( dest ); free( dir ); + strarray_add( &all_targets, xstrdup(obj) ); strarray_add_uniq( &phony_targets, "install-man-pages" ); } - strarray_add( &clean_files, xstrdup(obj) ); + else strarray_add( &clean_files, xstrdup(obj) ); output( "%s: %s\n", obj, sourcedep ); output( "\t$(SED_CMD) %s >$@ || ($(RM) $@ && false)\n", source->filename ); output( "%s:", obj );