From 68bd1f214bdc96b2d8b3a2244ac15a440409c63f Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Thu, 8 Sep 2022 23:17:51 +0400 Subject: [PATCH] Fix Makefile for Rust --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 83a7b9c..e101a04 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,8 @@ CONFIGMKS = \ $(CONFIGMKS_TO_REMOVE) \ config/3-defvars.mk +RUST_SRC = src/*.rs src/**/*.rs + MODULES_SRC = \ src/atoms.c \ src/drw.c \ @@ -73,7 +75,7 @@ polytreewm: src/main.o $(MODULES_OBJ) target/debug/libpolytreewm.a dwm.o: $(DWM_SRC) $(DWM_HDR) -target/debug/libpolytreewm.a: +target/debug/libpolytreewm.a: $(RUST_SRC) $(CARGO) build ######### @@ -106,4 +108,4 @@ uninstall: $(DESTDIR)$(BINDIR)/polytreewm \ $(DESTDIR)$(MANDIR)/man1/polytreewm.1 -.PHONY: all clean distclean install uninstall test target/debug/libpolytreewm.a +.PHONY: all clean distclean install uninstall test