diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-02-27 12:44:18 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-02-27 12:44:18 +0300 |
commit | 749503560ef72d7b20f935487a77ee4fbc8a9e3f (patch) | |
tree | e5d76effbcffaa834efaaf2f0c83db3e32d31c12 /CMakeLists.txt | |
parent | 7551c7a9483ea4821dc76bd72fe5441d99a63ed3 (diff) | |
download | rspamd-749503560ef72d7b20f935487a77ee4fbc8a9e3f.tar.gz rspamd-749503560ef72d7b20f935487a77ee4fbc8a9e3f.zip |
* Fix dependencies on perlxs target (do not rebuild it constantly)
* Fix rspamc to understand lmtp and delivery sections in config
* Fix parser's states when reading module options
* Add sample config for surbl module with comments
--HG--
rename : rspamc.pl => rspamc.pl.in
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9928c1757..275562b63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -270,14 +270,18 @@ ADD_CUSTOM_COMMAND(OUTPUT src/modules.c COMMAND ../utils/gen-modules.sh ${PLUGINSSRC} WORKING_DIRECTORY src) -ADD_CUSTOM_TARGET(perlxs ALL +ADD_CUSTOM_COMMAND(OUTPUT perl/Makefile COMMAND ${PERL_EXECUTABLE} ./Makefile.PL + WORKING_DIRECTORY perl) +ADD_CUSTOM_TARGET(perlxs COMMAND make + DEPENDS perl/Makefile WORKING_DIRECTORY perl VERBATIM) CONFIGURE_FILE(config.h.in src/config.h) CONFIGURE_FILE(perl/Makefile.PL.in perl/Makefile.PL) +CONFIGURE_FILE(rspamc.pl.in rspamc.pl @ONLY) ADD_EXECUTABLE(rspamd ${RSPAMDSRC} ${CONTRIBSRC} ${TOKENIZERSSRC} ${CLASSIFIERSSRC} ${PLUGINSSRC} ${YACC_OUTPUT} @@ -292,6 +296,7 @@ IF(PERL_DYNALOADER) TARGET_LINK_LIBRARIES(rspamd dynaloader) ENDIF(PERL_DYNALOADER) TARGET_LINK_LIBRARIES(rspamd ${GMIME2_LIBRARIES}) +ADD_DEPENDENCIES(rspamd perlxs) ADD_EXECUTABLE(test/rspamd-test ${TESTDEPENDS} ${CONTRIBSRC} ${TESTSRC}) SET_TARGET_PROPERTIES(test/rspamd-test PROPERTIES LINKER_LANGUAGE C) |