forked from vitrine/wmaker
Now ./configure checks for cargo and rustc, and `make` will rebuild wmaker-rs if any of its source code has changed. There are still some steps to take for better integration (like ensuring that deps are vendored correctly). See https://viruta.org/librsvgs-build-infrastructure-autotools-and-rust.html for suggestions on what else to do.
34 lines
511 B
Makefile
34 lines
511 B
Makefile
# automake input file for wmaker-rs
|
|
|
|
AUTOMAKE_OPTIONS =
|
|
|
|
RUST_SOURCES = \
|
|
src/app_icon.rs \
|
|
src/application.rs \
|
|
src/app_menu.rs \
|
|
src/defaults.rs \
|
|
src/dock.rs \
|
|
src/global.rs \
|
|
src/icon.rs \
|
|
src/lib.rs \
|
|
src/menu.rs \
|
|
src/properties.rs \
|
|
src/screen.rs \
|
|
src/window.rs \
|
|
src/wings.rs \
|
|
src/wrlib.rs
|
|
|
|
RUST_EXTRA = \
|
|
Cargo.lock
|
|
|
|
target/debug/libwmaker_rs.a: $(RUST_SOURCES) $(RUST_EXTRA)
|
|
$(CARGO) build
|
|
|
|
check-local:
|
|
$(CARGO) test
|
|
|
|
clean-local:
|
|
$(CARGO) clean
|
|
|
|
all: target/debug/libwmaker_rs.a
|