[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: How do I install header files not in GNUstep Header dirs?
From: |
Nicola Pero |
Subject: |
RE: How do I install header files not in GNUstep Header dirs? |
Date: |
Mon, 31 Dec 2007 12:39:28 +0100 (CET) |
Well, you are right that xxx_INSTALL_DIR and xxx_HEADER_FILES_INSTALL_DIR are
not
consistent because xxx_INSTALL_DIR is absolute, while
xxx_HEADER_FILES_INSTALL_DIR
is relative to GNUSTEP_HEADERS. :-(
I guess the right solution is to introduce a new variable which is absolute to
choose
the header installation dir, and then gnustep-make will use the (old) relative
or the
(new) absolute to decide where to install depending on which one is set (if both
are set, we arbitrarily choose one, eg. the absolute one). We need to choose a
nice
name for the new variable though. :-)
Said that, I'm not sure why you would want to hardcode the installation paths in
your GNUmakefile ?
Anyway, assuming you have a good reason to do so, for headers there currently
isn't
a nice solution to install them into an arbitrary location. I would suggest you
install them yourself - ie, don't list them in the xxx_HEADER_FILES variable
(so that
gnustep-make doesn't install them), and install them manually using an
after-install
rule:
CUSTOM_HEADER_FILES = A.h B.h C.h D.h
CUSTOM_HEADER_INSTALL_DIR = /usr/local/include
after-install:
$(ECHO_NOTHING)$(MKINSTALLDIRS) $(CUSTOM_HEADER_INSTALL_DIR)$(END_ECHO)
$(ECHO_NOTHING)for file in $(CUSTOM_HEADER_FILES) __done; do \
if [ $$file != __done ]; then \
$(INSTALL_DATA) $$file $(CUSTOM_HEADER_INSTALL_DIR)/$$file; \
fi; \
done$(END_ECHO)
[I haven't tested the code, so there might be a typo or two, but it should work
-
and add a TAB at the beginning of each make command (my email client is
stripping
them) ;-)]
That looks relatively ugly though, as won't work with other filesystem layouts.
:-(
Thanks
-----Original Message-----
From: Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
Sent: Monday, December 31, 2008 11:35am
To: discuss-gnustep@gnu.org
Subject: How do I install header files not in GNUstep Header dirs?
Hi,
I want to install the header files below /usr/local/include, nevertheless
what $GNUSTEP_HEADERS says where the files should go. In
Makefiles/Instance/Shared/headers.make I haven't found a Variable that
allows me to install to an arbitrary location, just like for the
installation of TOOLS. Or do I have to overwrite the GNUSTEP_HEADERS
variable before calling e.g. bundle.make or library.make, or would I then
run into other problems?
cheers
Sebastian
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep