[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is nobase_include_HEADERS supposed to precreate directories?
From: |
Ralf Wildenhues |
Subject: |
Re: Is nobase_include_HEADERS supposed to precreate directories? |
Date: |
Wed, 6 Jul 2005 17:59:17 +0200 |
User-agent: |
Mutt/1.4.1i |
Hi Jeremy,
* Jeremy C. Reed wrote on Mon, Jul 04, 2005 at 06:58:43PM CEST:
>
> nobase_include_HEADERS = histedit.h editline/readline.h
>
> The Makefile.in (generated by automake 1.9.5) does:
>
> nobase_include_HEADERS = histedit.h editline/readline.h
> ...
> install-nobase_includeHEADERS: $(nobase_include_HEADERS)
> @$(NORMAL_INSTALL)
> test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
> @$(am__vpath_adj_setup) \
> list='$(nobase_include_HEADERS)'; for p in $$list; do \
> if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
> $(am__vpath_adj) \
> echo " $(nobase_includeHEADERS_INSTALL) '$$d$$p'
> '$(DESTDIR)$(includedir)/$$f'"; \
> $(nobase_includeHEADERS_INSTALL) "$$d$$p"
> "$(DESTDIR)$(includedir)/$$f"; \
> done
>
>
> Should it also precreate the "editline" subdirectory also?
I believe it should: Quoting docs:
| The `nobase_' prefix is also supported,
|
| nobase_include_HEADERS = foo.h bar/bar.h
|
| will install the two files as `$(includedir)/foo.h' and
| `$(includedir)/bar/bar.h' (*note Alternative::).
If the intermediate directories were intended to be created manually,
the documentation should state so, IMVHO. I'd regard that as an
inconvenience, though.
Regards,
Ralf