summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2025-11-25 16:09:38 +0100
committerAlbert Cervin <albert@acervin.com>2025-11-25 16:09:38 +0100
commita4056eb9de575463ccc9f53db8952e49801a8cf3 (patch)
tree92cd5a2169f22b1fa84aa8c20a91774c7fd1668b /Makefile
parentc21bd5f2d9f4ec2230b31040fd3c34cbe417476f (diff)
downloaddged-a4056eb9de575463ccc9f53db8952e49801a8cf3.tar.gz
dged-a4056eb9de575463ccc9f53db8952e49801a8cf3.tar.xz
dged-a4056eb9de575463ccc9f53db8952e49801a8cf3.zip
Revert the revision
It does not play nice with Nix
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 3 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index aac5f42..cfb430a 100644
--- a/Makefile
+++ b/Makefile
@@ -64,8 +64,6 @@ CFLAGS ?= -g -O2
CFLAGS += -Werror -Wall -Wextra -std=c99\
-I $(.CURDIR)/src\
-I $(.CURDIR)/src/main\
- -I $(.OBJDIR)/src\
- -I $(.OBJDIR)/src/main\
-DDATADIR="$(prefix)/$(datadir)"\
-DTEST_ROOT="$(.CURDIR)/test"
@@ -122,24 +120,19 @@ FILES = $(DEPS) \
$(MAIN_OBJS) \
$(OBJS) \
$(TEST_OBJS) \
- src/main/revision.h \
dged \
libdged.a
-src/main/revision.h: scripts/generate-revision
- @$(.CURDIR)/scripts/generate-revision $@
-
# dependency generation
-.c.d: config.mk src/main/revision.h
+.c.d: config.mk
@mkdir -p $(@D)
$(CC) -MM $(CFLAGS) -MT $*.o $< > $@
@sed -i 's,\($*\)\.o[ :]*,\1.o $@ : ,g' $@
-.c.o: config.mk src/main/revision.h
+.c.o: config.mk
@mkdir -p $(@D)
$(CC) $(CFLAGS) -c $< -o $@
-# TODO: remove this
grammars:
@if [ "$(SYNTAX_ENABLE)" = "true" ] && [ -n "$$BUNDLE_TREESITTER_GRAMMARS" ]; then \
IFS=":"; for p in "$$BUNDLE_TREESITTER_GRAMMARS"; do \
@@ -149,7 +142,7 @@ grammars:
mkdir -p ./grammars; \
fi
-dged: src/main/revision.h $(MAIN_OBJS) libdged.a grammars
+dged: $(MAIN_OBJS) libdged.a grammars
$(CC) $(LDFLAGS) $(MAIN_OBJS) libdged.a -o dged -lm
libdged.a: $(OBJS)