|
From: | Marwan Badawi |
Subject: | Re: Multiple install targets |
Date: | Tue, 13 Dec 2005 11:10:40 +0100 |
User-agent: | Mozilla Thunderbird 1.0.7 (X11/20050923) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |