slash

slash is a simple type-oriented programming language
Log | Files | Refs | README | LICENSE

commit 40b42f71c5030cce7816ffb03e6c8c5319103caf
parent 51d8b2f74e4652b3955624fc080c0f27b1f92d51
Author: Mario Rosell R. Martinez <mario@mariorosell.es>
Date:   Sat,  4 Apr 2026 14:07:28 +0200

build: dependency generation

Now build tracking is more precise.

Diffstat:
MMakefile | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -3,10 +3,11 @@ # SRCS := slash.c cli.c stat.c lex.c pipeline.c +DEPS != echo *.d OBJS := ${SRCS:.c=.o} CC ?= cc -CFLAGS := -Wall -Werror -pipe -std=c99 +CFLAGS := -Wall -Werror -pipe -std=c99 -MMD -MP CPPFLAGS := -DVERSION='"0.1.0 DEV"' -DIN_SLASH LDFLAGS ?= LIBS ?= -lm @@ -19,7 +20,7 @@ BINDIR ?= usr/local/bin .SUFFIXES: .c .o .c.o: - ${CC} ${CFLAGS} ${CPPFLAGS} -c $^ -o $@ + ${CC} ${CFLAGS} ${CPPFLAGS} -c $< -o $@ all: ${TARG} @@ -36,5 +37,7 @@ install: all uninstall: rm -f ${DESTDIR}${BINDIR}/${TARG} +-include "${DEPS}" + .PHONY: all clean install uninstall