mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-10-29 05:40:25 -04:00 
			
		
		
		
	include: fix out-of-source-tree build
Fixes:
  cd alsa-lib
  if test -r Makefile; then
    make distclean
  fi
  mkdir build
  cd build
  ../configure
  make
Note:
  The srcdir is used for the symlinks to generated include files :-(
  I've not found a better (easy) way to fix this.
Fixes: https://github.com/alsa-project/alsa-lib/issues/136
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
			
			
This commit is contained in:
		
							parent
							
								
									2c8e31f509
								
							
						
					
					
						commit
						b0e99e4cfe
					
				
					 1 changed files with 11 additions and 4 deletions
				
			
		|  | @ -66,11 +66,18 @@ noinst_HEADERS = alsa sys.h search.h list.h aserver.h local.h alsa-symbols.h \ | |||
| 
 | ||||
| DISTCLEANFILES = stamp-vh version.h alsa asoundlib.h | ||||
| 
 | ||||
| alsa: | ||||
| 	ln -s $(top_srcdir)/include alsa | ||||
| .DUMMY: alsa_link | ||||
| alsa_link: | ||||
| 	if ! test -h alsa; then \ | ||||
| 		ln -s $(top_srcdir)/include alsa; \ | ||||
| 	fi | ||||
| 
 | ||||
| version.h: stamp-vh alsa | ||||
| 	@: | ||||
| version.h: stamp-vh alsa_link | ||||
| 	for f in asoundlib.h version.h; do \ | ||||
| 		if ! test -r $(top_srcdir)/include/$$f; then \ | ||||
| 			ln -s $(abs_top_builddir)/include/$$f $(top_srcdir)/include/$$f; \ | ||||
| 		fi; \ | ||||
| 	done | ||||
| 
 | ||||
| stamp-vh: $(top_builddir)/configure.ac | ||||
| 	@echo "/*" > ver.tmp | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jaroslav Kysela
						Jaroslav Kysela