some minor tricks

This commit is contained in:
wescande 2017-01-26 16:47:25 +01:00 committed by Jack Halford
parent e886375f7a
commit d857f74a86
2 changed files with 2 additions and 2 deletions

View file

@ -117,7 +117,7 @@ LIBFT_INC = $(LIBFT_DIR)includes/
LIBS = -ltermcap
SRC_DIR = srcs/
SRC_DIR = src/
INC_DIR = includes/
OBJ_DIR = objs/

View file

@ -5,7 +5,7 @@ then
echo "regenerate Makefile"
sed "`grep -n 'SRC_BASE =' $CUR_MAKEFILE | sed 's/:.*//'`, \$d" $CUR_MAKEFILE > NEWMAKEFILE
grep 'SRC_BASE =' $CUR_MAKEFILE >> NEWMAKEFILE
expr "$(find ./srcs | grep "\.c" | sed -e 's/srcs\///' -e 's/\.\///' -e 's/$/\\/')" : "\(.*\).$" >> NEWMAKEFILE
expr "$(find ./src | grep "\.c" | sed -e 's/src\///' -e 's/\.\///' -e 's/$/\\/')" : "\(.*\).$" >> NEWMAKEFILE
echo "" >> NEWMAKEFILE
grep 'SRCS =' $CUR_MAKEFILE >> NEWMAKEFILE
sed "1, `grep -n 'SRCS =' $CUR_MAKEFILE | sed 's/:.*//'`d" $CUR_MAKEFILE >> NEWMAKEFILE