3

I wrote a program in C++ and I'm using autoconf and automake. Also, I've made man page (my_program.1) in the same folder that has all source files, header files and so on. In my Makefile.am I have this line

man1_MANS = my_program.1

When I say ./configure it's all ok, but when I run make I get this error:

make: *** No rule to make target `my_program.1`, needed by `all-am`.  Stop.

Any idea how to fix this?

golobitch
  • 1,466
  • 3
  • 19
  • 38

1 Answers1

1

I encountered the same message when running make distcheck and it was because my man page wasn't being included in my release distribution. Adding my man page to EXTRA_DIST fixed the issue.

In your case, that means the following:

EXTRA_DIST = my_program.1
man1_MANS = my_program.1
hgs3
  • 525
  • 3
  • 6