[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PACKAGE_NAME, PACKAGE_VERSION etc
From: |
Andreas Buening |
Subject: |
Re: PACKAGE_NAME, PACKAGE_VERSION etc |
Date: |
Thu, 19 Feb 2004 12:55:51 +0100 |
Balint Joo wrote:
[snip]
> Neither of these are very "auto"
>
> Sorry, but I am still unsatisfied...
If none of the other suggestions fullfills your needs, you can do
it manually. Provided you want to install your myconfig.h containing
the macros MY_MACRO_1 and MY_MACRO_2 into $prefix/include/mylib,
you may add the following to your Makefile.am:
all-local: myconfig.h
myconfig.h: config.h
echo "Creating myconfig.h"
rm -fR myconfig.h
grep -e "MY_MACRO_1\|MY_MACRO_2" > myconfig.h
install-data-local: all-local
echo "Creating myconfig.h"
$(mkinstalldirs) $(includedir)/mylib
$(INSTALL_DATA) myconfig.h $(includedir)/mylib/myconfig.h
I hope the code above is correct.
Andreas
- PACKAGE_NAME, PACKAGE_VERSION etc, Balint Joo, 2004/02/17
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Daniel Reed, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Bob Friesenhahn, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Bruce Korb, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Bob Friesenhahn, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Bruce Korb, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Ralf Wildenhues, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, RĂ¼diger Kuhlmann, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Daniel Reed, 2004/02/18
- Re: PACKAGE_NAME, PACKAGE_VERSION etc, Bob Friesenhahn, 2004/02/18