tMove source code into separate directory - ve - a minimal text editor (work in progress) (HTM) git clone git://src.adamsgaard.dk/ve (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 0c629a2638b242c02e9dfce571b6738d64727b34 (DIR) parent a1e808fef8c883a712288829168256731d412de1 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Wed, 7 Aug 2019 16:42:15 +0200 Move source code into separate directory Diffstat: M Makefile | 7 ++++--- R edit.c -> src/edit.c | 0 R edit.h -> src/edit.h | 0 R find.c -> src/find.c | 0 R find.h -> src/find.h | 0 R input.c -> src/input.c | 0 R input.h -> src/input.h | 0 R io.c -> src/io.c | 0 R io.h -> src/io.h | 0 R main.c -> src/main.c | 0 R output.c -> src/output.c | 0 R output.h -> src/output.h | 0 R row.c -> src/row.c | 0 R row.h -> src/row.h | 0 R terminal.c -> src/terminal.c | 0 R terminal.h -> src/terminal.h | 0 R ve.c -> src/ve.c | 0 R ve.h -> src/ve.h | 0 18 files changed, 4 insertions(+), 3 deletions(-) --- (DIR) diff --git a/Makefile b/Makefile t@@ -1,9 +1,10 @@ CFLAGS = -g -std=c99 -pedantic -Wall -Wextra #LDFLAGS = -lm -SRC = $(wildcard *.c) +SRCDIR = src +SRC = $(wildcard $(SRCDIR)/*.c) OBJ = $(patsubst %.c,%.o,$(SRC)) HDR = $(wildcard *.h) -BIN = ./ve +BIN = ve PREFIX ?= /usr/local INSTALL ?= install t@@ -30,7 +31,7 @@ memtest: $(BIN) valgrind --error-exitcode=1 --leak-check=full $(BIN) -v clean: - $(RM) *.o + $(RM) $(SRCDIR)/*.o $(RM) $(BIN) .PHONY: default install uninstall test memtest clean (DIR) diff --git a/edit.c b/src/edit.c (DIR) diff --git a/edit.h b/src/edit.h (DIR) diff --git a/find.c b/src/find.c (DIR) diff --git a/find.h b/src/find.h (DIR) diff --git a/input.c b/src/input.c (DIR) diff --git a/input.h b/src/input.h (DIR) diff --git a/io.c b/src/io.c (DIR) diff --git a/io.h b/src/io.h (DIR) diff --git a/main.c b/src/main.c (DIR) diff --git a/output.c b/src/output.c (DIR) diff --git a/output.h b/src/output.h (DIR) diff --git a/row.c b/src/row.c (DIR) diff --git a/row.h b/src/row.h (DIR) diff --git a/terminal.c b/src/terminal.c (DIR) diff --git a/terminal.h b/src/terminal.h (DIR) diff --git a/ve.c b/src/ve.c (DIR) diff --git a/ve.h b/src/ve.h