diff options
| author | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2024-05-31 23:20:08 +0900 | 
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2024-05-31 23:20:08 +0900 | 
| commit | 8a19837e71773af2405b6c4c64eeef0fbc9e3b22 (patch) | |
| tree | 4cec71aaf1b63935f556f5d57f6478cffdf24cef | |
| parent | 1b50145b6f74f0d398bc01ae25d21fd18457a7c5 (diff) | |
Fix the build system
Simply use git to retrieve linenoise sources instead.
| -rw-r--r-- | configure.ac | 11 | ||||
| -rw-r--r-- | src/Makefile.am | 4 | 
2 files changed, 6 insertions, 9 deletions
| diff --git a/configure.ac b/configure.ac index e3298be..3eaec37 100644 --- a/configure.ac +++ b/configure.ac @@ -7,13 +7,10 @@ AC_CONFIG_FILES([  	Makefile  	src/Makefile  ]) -AC_CHECK_PROG([DLPROG], [curl], [curl -LO], [false]) -if [ ! -d "./linenoise-master/" ] + +if [ ! -d "./linenoise/" ]  then -	if [ ! -f "./master.zip" ] -	then -		$DLPROG 'https://github.com/antirez/linenoise/archive/refs/heads/master.zip' -	fi -	unzip 'master.zip' +	git clone --depth=1 'https://github.com/antirez/linenoise.git'  fi +  AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am index 728ef88..006ee7f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@  bin_PROGRAMS = calculer -AM_CFLAGS = -Wall -Wextra -I../linenoise-master/ +AM_CFLAGS = -Wall -Wextra -I../linenoise/  calculer_SOURCES = calculer.c linenoise.c  BUILT_SOURCES: linenoise.c  linenoise.c: -	cp ../linenoise-master/linenoise.c . +	cp ../linenoise/linenoise.c . | 
