[svn] gpg-error - r232 - in trunk: . src

svn author wk cvs at cvs.gnupg.org
Wed Feb 17 16:21:28 CET 2010


Author: wk
Date: 2010-02-17 16:21:28 +0100 (Wed, 17 Feb 2010)
New Revision: 232

Modified:
   trunk/ChangeLog
   trunk/src/Makefile.am
Log:
Reworked the installation of gpg-extra/errno.h.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2010-02-17 09:58:38 UTC (rev 231)
+++ trunk/ChangeLog	2010-02-17 15:21:28 UTC (rev 232)
@@ -1,5 +1,14 @@
 2010-02-17  Werner Koch  <wk at g10code.com>
 
+	* src/Makefile.am: Revert last change.
+	(gpg_extra_headers): New.
+	(nobase_include_HEADERS): Rename to include_HEADERS and remove
+	extra_headers.
+	(mkerrcodes.h): Depend on gpg_extra_headers.
+	(install-data-local): New.
+
+2010-02-17  Werner Koch  <wk at g10code.com>
+
 	* src/Makefile.am (extra_headers): Remove.
 
 2010-01-21  Werner Koch  <wk at g10code.com>

Modified: trunk/src/Makefile.am
===================================================================
--- trunk/src/Makefile.am	2010-02-17 09:58:38 UTC (rev 231)
+++ trunk/src/Makefile.am	2010-02-17 15:21:28 UTC (rev 232)
@@ -23,15 +23,17 @@
 
 
 if HAVE_W32CE_SYSTEM
+gpg_extra_headers = gpg-extra/errno.h
 extra_cppflags = -idirafter gpg-extra
 else
+gpg_extra_headers = 
 extra_cppflags =  
 endif
 
 localedir = $(datadir)/locale
 bin_PROGRAMS = gpg-error
 lib_LTLIBRARIES = libgpg-error.la
-nobase_include_HEADERS = gpg-error.h $(extra_headers)
+include_HEADERS = gpg-error.h
 bin_SCRIPTS = gpg-error-config
 m4datadir = $(datadir)/aclocal
 m4data_DATA = gpg-error.m4
@@ -45,7 +47,7 @@
 
 BUILT_SOURCES = err-sources.h err-codes.h code-to-errno.h code-from-errno.h \
 	err-sources-sym.h err-codes-sym.h errnos-sym.h gpg-error.h \
-	gpg-error.def extra-h.in $(extra_headers)
+	gpg-error.def extra-h.in
 
 tmp_files = _mkerrcodes.h _gpg-error.def.h mkw32errmap.tab.h 
 
@@ -129,7 +131,7 @@
 	$(AWK) -f $(srcdir)/mkerrnos.awk $(srcdir)/errnos.in >$@
 
 # It is correct to use $(CPP).  We want the host's idea of the error codes.
-mkerrcodes.h: Makefile mkerrcodes.awk $(extra_headers)
+mkerrcodes.h: Makefile mkerrcodes.awk $(gpg_extra_headers)
 	$(AWK) -f $(srcdir)/mkerrcodes1.awk $(srcdir)/errnos.in >_$@
 	$(CPP) $(extra_cppflags) _$@ | grep GPG_ERR_ | \
                $(AWK) -f $(srcdir)/mkerrcodes.awk >$@
@@ -190,3 +192,14 @@
 		$(srcdir)/errnos.in \
 		extra-h.in \
 		$(srcdir)/gpg-error.h.in > $@
+
+
+install-data-local:
+if HAVE_W32CE_SYSTEM
+	test -z "$(includedir)/gpg-extra" \
+           || $(MKDIR_P) "$(DESTDIR)$(includedir)/gpg-extra"
+	$(INSTALL_DATA) gpg-extra/errno.h \
+                         "$(DESTDIR)$(includedir)/gpg-extra/errno.h"
+else
+        :
+endif




More information about the Gnupg-commits mailing list