diff --git a/fluidsynth/CMakeLists.txt b/fluidsynth/CMakeLists.txt index fdac429c..b004adcc 100644 --- a/fluidsynth/CMakeLists.txt +++ b/fluidsynth/CMakeLists.txt @@ -397,13 +397,34 @@ if ( UNIX ) # COMMAND tar -cj --exclude .svn --exclude Makefile.am -f ${PACKAGE}-${VERSION}.tar.bz2 ${PACKAGE}-${VERSION} # COMMAND tar -cz --exclude .svn --exclude Makefile.am -f ${PACKAGE}-${VERSION}.tar.gz ${PACKAGE}-${VERSION} # COMMAND zip -qr ${PACKAGE}-${VERSION}.zip ${PACKAGE}-${VERSION} -x '*.svn*' -x '*Makefile.am' - COMMAND cp acinclude.m4 autogen.sh configure.ac install-sh missing mkinstalldirs Makefile.am ${PACKAGE}-${VERSION} COMMAND tar -cj --exclude .svn -f ${PACKAGE}-${VERSION}.tar.bz2 ${PACKAGE}-${VERSION} COMMAND tar -cz --exclude .svn -f ${PACKAGE}-${VERSION}.tar.gz ${PACKAGE}-${VERSION} COMMAND zip -qr ${PACKAGE}-${VERSION}.zip ${PACKAGE}-${VERSION} -x '*.svn*' COMMAND rm -rf ${PACKAGE}-${VERSION} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} ) + + # tarball custom target + add_custom_target ( tarball-autotools + COMMAND mkdir -p ${PACKAGE}-${VERSION} + COMMAND cp -r bindings ${PACKAGE}-${VERSION} + COMMAND cp -r cmake_admin ${PACKAGE}-${VERSION} + COMMAND cp -r doc ${PACKAGE}-${VERSION} + COMMAND cp -r include ${PACKAGE}-${VERSION} + COMMAND cp -r src ${PACKAGE}-${VERSION} + COMMAND cp AUTHORS ChangeLog CMakeLists.txt COPYING ${PACKAGE}.* INSTALL NEWS README* THANKS TODO ${PACKAGE}-${VERSION} + COMMAND cp acinclude.m4 autogen.sh configure.ac install-sh missing mkinstalldirs Makefile.am ${PACKAGE}-${VERSION} + # Files below are added when running autogen.sh + # COMMAND cp -r autom4te.cache ${PACKAGE}-${VERSION} + COMMAND cp -r m4 ${PACKAGE}-${VERSION} + COMMAND cp aclocal.m4 compile config.guess config.sub configure depcomp ltmain.sh Makefile.in ${PACKAGE}-${VERSION} + COMMAND tar -cj --exclude .svn -f ${PACKAGE}-${VERSION}.tar.bz2 ${PACKAGE}-${VERSION} + COMMAND tar -cz --exclude .svn -f ${PACKAGE}-${VERSION}.tar.gz ${PACKAGE}-${VERSION} + COMMAND zip -qr ${PACKAGE}-${VERSION}.zip ${PACKAGE}-${VERSION} -x '*.svn*' + COMMAND rm -rf ${PACKAGE}-${VERSION} + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + ) + endif ( UNIX ) include ( report )