[dovecot-cvs] dovecot/src/lib-storage/register Makefile.am,1.2,1.3

cras at dovecot.org cras at dovecot.org
Thu Oct 21 02:06:08 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib-storage/register
In directory talvi:/tmp/cvs-serv10981/src/lib-storage/register

Modified Files:
	Makefile.am 
Log Message:
Upgrades to autoconf 2.5 and automake >1.4.



Index: Makefile.am
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/register/Makefile.am,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Makefile.am	27 Apr 2004 20:25:55 -0000	1.2
+++ Makefile.am	20 Oct 2004 23:06:04 -0000	1.3
@@ -1,6 +1,23 @@
 noinst_LIBRARIES = libstorage-register.a
 
-INCLUDES = \
+BUILT_SOURCES = mail-storage-register.c
+mail_storages = @mail_storages@
+
+mail-storage-register.c: Makefile
+	rm -f $@
+	echo '/* this file automatically generated by Makefile */' >$@
+	echo '#include "lib.h"' >>$@
+	echo '#include "mail-storage.h"' >>$@
+	for i in $(mail_storages) ; do \
+		echo "extern struct mail_storage $${i}_storage;" >>$@ ; \
+	done
+	echo 'void mail_storage_register_all(void) {' >>$@
+	for i in $(mail_storages) ; do \
+		echo "mail_storage_class_register(&$${i}_storage);" >>$@ ; \
+	done
+	echo '}' >>$@
+
+AM_CPPFLAGS = \
 	-I$(top_srcdir)/src/lib \
 	-I$(top_srcdir)/src/lib-mail \
 	-I$(top_srcdir)/src/lib-storage



More information about the dovecot-cvs mailing list