summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2024-05-14 22:10:34 +0200
committerAlbert Cervin <albert@acervin.com>2024-05-14 22:10:34 +0200
commit36b3a04b9a2a9d52a1db6e28697e7ec3b1118eb1 (patch)
tree7f4b6b5165afd2157dbb4f131f6a32f1fca82293 /Makefile
parentfd1728393d65abb8af2166f3697da55b338e0937 (diff)
downloaddged-36b3a04b9a2a9d52a1db6e28697e7ec3b1118eb1.tar.gz
dged-36b3a04b9a2a9d52a1db6e28697e7ec3b1118eb1.tar.xz
dged-36b3a04b9a2a9d52a1db6e28697e7ec3b1118eb1.zip
Improve configure with docs and help flag
Also make targets dependent on config.mk so that the program is rebuilt when config.mk changes.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7d84085..942cbad 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,6 @@ default: dged
.PHONY: default clean check run debug debug-tests install format
.OBJDIR: ./build
-SYNTAX_ENABLE ?= true
build:
mkdir -p build
@@ -14,6 +13,7 @@ build:
.endif
.include "config.mk"
+SYNTAX_ENABLE ?= true
HEADERS = src/dged/settings.h src/dged/minibuffer.h src/dged/keyboard.h src/dged/binding.h \
src/dged/buffers.h src/dged/text.h src/dged/display.h src/dged/hashmap.h src/dged/path.h \
@@ -97,12 +97,12 @@ FILES = $(DEPS) \
libdged.a
# dependency generation
-.c.d:
+.c.d: config.mk
@mkdir -p $(@D)
$(CC) -MM $(CFLAGS) -MT $*.o $< > $@
@sed -i 's,\($*\)\.o[ :]*,\1.o $@ : ,g' $@
-.c.o:
+.c.o: config.mk
@mkdir -p $(@D)
$(CC) $(CFLAGS) -c $< -o $@