Good day! I'm not sure on which list it should go, because it's in between automake and libtool…
I have a makefile like this: ------------------- SUFFIXES = .pc .pc.c: cp $(srcdir)/$*.pc $(builddir)/$*.c noinst_LTLIBRARIES=libfoo.la libfoo_la_SOURCES=foo.pc ------------------- It doesn't work as intended because the rule .c.lo is not created. I think that question is for automake, but now there question about libtool. If at least one .c file is present in the _SOURCES, then the rule is created, but doesn't work still (on HP-UX B.11.23, for example): Make: Don't know how to make foo.lo. Stop. That's because the .pc.c and .c.lo rules in the absence of .c file don't work together. And so it is stated in the standard. Is it possible to make the dependency automatically for hp2? In this case it would be foo.lo: foo.c Now the dependency file is empty with one line: # dummy But if i create an empty .c file, the make command succeeds and dependency file is updated: ----------------------- cp ./foo.pc ./foo.c source='foo.c' object='foo.lo' libtool=yes \ DEPDIR=.deps depmode=hp2 /bin/sh ../depcomp \ /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -g -c -o foo.lo foo.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -g -c +Maked foo.c -o foo.o /bin/sh ../libtool --tag=CC --mode=link cc -g -o libfoo.la foo.lo bar.lo libtool: link: rm -fr .libs/libfoo.a .libs/libfoo.la libtool: link: ar cru .libs/libfoo.a foo.o bar.o libtool: link: ranlib .libs/libfoo.a libtool: link: ( cd ".libs" && rm -f "libfoo.la" && ln -s "../libfoo.la" "libfoo.la" ) --------------------- mk2HPX02:/build/mk2HPX02/foo-1.0/2>more .deps/foo.Plo foo.lo: foo.c --------------------- -- «Every person has a certain horizon. When it narrows and becomes infinitely small, it changes into a point and then the person says: “This is my point of view.”» _______________________________________________ https://lists.gnu.org/mailman/listinfo/libtool