CB100

Notas, resueltos y tps de la materia Algoritmos y Estructuras de Datos
Index Commits Files Refs README
commit 965e35d1f0f1e3ea90add0628ca7423e0fd48a58
parent a5f232b98ba48e06dbda11885f0a28ca26e6ed34
Author: mjkloeckner <mjkloeckner@gmail.com>
Date:   Thu, 13 Jun 2024 12:55:13 -0300

add `LIBS` dependency

the new `LIBS` variable matches all files on directory with extension
`hpp`

Diffstat:
MMakefile | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -1,6 +1,7 @@
 CC := g++
 CFLAGS := -Wall -Wshadow -pedantic -ansi -std=c++98 -O3
 SRCS := $(wildcard *.cpp)
+LIBS := $(wildcard *.hpp)
 
 TARGET := main
 
@@ -8,7 +9,7 @@ TARGET := main
 
 all: $(TARGET)
 
-$(TARGET): $(SRCS)
+$(TARGET): $(SRCS) $(LIBS)
     $(CC) $(CLIBS) $(CFLAGS) -o $@ $^
 
 clean: