tMove source code into separate directory - ve - a minimal text editor (work in… | |
git clone git://src.adamsgaard.dk/ve | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 0c629a2638b242c02e9dfce571b6738d64727b34 | |
parent a1e808fef8c883a712288829168256731d412de1 | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
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 | |
diff --git a/edit.c b/src/edit.c | |
diff --git a/edit.h b/src/edit.h | |
diff --git a/find.c b/src/find.c | |
diff --git a/find.h b/src/find.h | |
diff --git a/input.c b/src/input.c | |
diff --git a/input.h b/src/input.h | |
diff --git a/io.c b/src/io.c | |
diff --git a/io.h b/src/io.h | |
diff --git a/main.c b/src/main.c | |
diff --git a/output.c b/src/output.c | |
diff --git a/output.h b/src/output.h | |
diff --git a/row.c b/src/row.c | |
diff --git a/row.h b/src/row.h | |
diff --git a/terminal.c b/src/terminal.c | |
diff --git a/terminal.h b/src/terminal.h | |
diff --git a/ve.c b/src/ve.c | |
diff --git a/ve.h b/src/ve.h |