Ralf Wildenhues wrote:
by replicating the rule Automake generates:

install-libonly: $(lib_LTLIBRARIES)
        @$(NORMAL_INSTALL)
        test -z "$(libdir)" || $(mkinstalldirs) "$(DESTDIR)$(libdir)"
        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
          if test -f $$p; then \
            f=`echo $$p | sed -e 's|^.*/||'`; \
            echo " $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) '$$p' 
'$(DESTDIR)$(libdir)/$$f'"; \
            $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) "$$p" 
"$(DESTDIR)$(libdir)/$$f"; \
          else :; fi; \
        done

Should you use a recursive Makefile structure, you'd need to write the
necessary recursion targets as well, unfortunately.

Cheers,
Ralf

Thank you Ralf. But, if I got this right, I'll have to add this rule (or it's recursive targets) in all my Makefile.in files (I am using a recursive Makefile structure, unfortunately as you say). Won't these changes be discarded if I re-run automake? Since this project is still under heavy develomment, I sometimes have to make changes at the autotools level.

Marwan
--
Même la modération ne doit pas être pratiquée à l'excès


Reply via email to