prepare to include makefiles
This commit is contained in:
		| @@ -242,6 +242,25 @@ AC_DEFUN([AX_INIT_STANDARD_PROJECT], [ | ||||
|   else | ||||
|     AM_CPPFLAGS="${AM_CPPFLAGS} -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG" | ||||
|   fi | ||||
|  | ||||
|   AC_ARG_WITH(gcov, | ||||
|     [AS_HELP_STRING([--with-gcov=FILE], | ||||
|                     [enable gcov, set gcov file (defaults to gcov)])], | ||||
|     [GCOV="$enableval"], [GCOV="no"]) | ||||
|   AM_CONDITIONAL(COVERAGE, test "$GCOV" != "no") | ||||
|   if test "$GCOV" != "no"; then | ||||
|     if test "$GCOV" == "yes"; then | ||||
|       GCOV=gcov | ||||
|     fi | ||||
|     AC_CHECK_PROG(has_gcov, [$GCOV], [yes], [no]) | ||||
|     if test "$has_gcov" != "yes"; then | ||||
|       AC_MSG_ERROR([gcov: program $GCOV not found]) | ||||
|     fi | ||||
|     AC_MSG_NOTICE([Coverage tests enabled, using ${GCOV}]); | ||||
|     AM_CXXFLAGS="${AM_CXXFLAGS:-} -O0 --coverage -fprofile-arcs -ftest-coverage" | ||||
|     AM_LDFLAGS="${AM_LDFLAGS} -O0 --coverage -fprofile-arcs" | ||||
|     AX_SUBST(GCOV) | ||||
|   fi | ||||
|    | ||||
|   if test -f ${PACKAGE_NAME}.desktop.in; then | ||||
|     AC_CONFIG_FILES([${PACKAGE_NAME}.desktop]) | ||||
|   | ||||
| @@ -129,6 +129,7 @@ GENERATED FILES | ||||
|     * ax_init_standard_project.m4 - auxiliary macro definition file | ||||
|     * ax_cxx_compile_stdcxx_11.m4 - auxiliary macro definition file | ||||
|     * ax_check_qt.m4 - auxiliary macro definition file | ||||
|     * makefile_test.inc.am - makefile to be included in tests | ||||
|     * resolve-debbuilddeps.sh - script to install debian package dependencies | ||||
|     * resolve-rpmbuilddeps.sh - script to install RPM package dependencies | ||||
|     * build-in-docker.sh - script to build the project encapsulated in a docker container | ||||
| @@ -500,6 +501,7 @@ copy ${MY_NAME} | ||||
| copy ax_init_standard_project.m4 | ||||
| copy ax_cxx_compile_stdcxx_11.m4 | ||||
| copy ax_check_qt.m4 | ||||
| copy makefile_test.inc.am | ||||
| copy resolve-debbuilddeps.sh | ||||
| copy resolve-rpmbuilddeps.sh | ||||
| copy build-in-docker.sh | ||||
|   | ||||
							
								
								
									
										9
									
								
								scripts/makefile_test.inc.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								scripts/makefile_test.inc.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| ## @id $Id$ | ||||
|  | ||||
| ##       1         2         3         4         5         6         7         8 | ||||
| ## 45678901234567890123456789012345678901234567890123456789012345678901234567890 | ||||
|  | ||||
| %.gcda: % | ||||
| 	gcov $< | ||||
|  | ||||
| CLEANFILES += ${CLEANFILES} ${TEST:%=%.gcno} ${TEST:%=%.gcda} *.gcov | ||||
		Reference in New Issue
	
	Block a user