Fix Makefile for Rust
This commit is contained in:
parent
61651952d2
commit
68bd1f214b
1 changed files with 4 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -14,6 +14,8 @@ CONFIGMKS = \
|
||||||
$(CONFIGMKS_TO_REMOVE) \
|
$(CONFIGMKS_TO_REMOVE) \
|
||||||
config/3-defvars.mk
|
config/3-defvars.mk
|
||||||
|
|
||||||
|
RUST_SRC = src/*.rs src/**/*.rs
|
||||||
|
|
||||||
MODULES_SRC = \
|
MODULES_SRC = \
|
||||||
src/atoms.c \
|
src/atoms.c \
|
||||||
src/drw.c \
|
src/drw.c \
|
||||||
|
@ -73,7 +75,7 @@ polytreewm: src/main.o $(MODULES_OBJ) target/debug/libpolytreewm.a
|
||||||
|
|
||||||
dwm.o: $(DWM_SRC) $(DWM_HDR)
|
dwm.o: $(DWM_SRC) $(DWM_HDR)
|
||||||
|
|
||||||
target/debug/libpolytreewm.a:
|
target/debug/libpolytreewm.a: $(RUST_SRC)
|
||||||
$(CARGO) build
|
$(CARGO) build
|
||||||
|
|
||||||
#########
|
#########
|
||||||
|
@ -106,4 +108,4 @@ uninstall:
|
||||||
$(DESTDIR)$(BINDIR)/polytreewm \
|
$(DESTDIR)$(BINDIR)/polytreewm \
|
||||||
$(DESTDIR)$(MANDIR)/man1/polytreewm.1
|
$(DESTDIR)$(MANDIR)/man1/polytreewm.1
|
||||||
|
|
||||||
.PHONY: all clean distclean install uninstall test target/debug/libpolytreewm.a
|
.PHONY: all clean distclean install uninstall test
|
||||||
|
|
Loading…
Reference in a new issue