ManUtils: Move, use ExtUtils::MakeMaker and get rid of AnyEvent

I mean, I like AnyEvent, but this can be done with core modules as well
(albeit somewhat more verbose and error-prone...)
This commit is contained in:
Yorhel 2025-02-24 16:27:07 +01:00
parent 2f33e7f4b5
commit 682321d1be
9 changed files with 92 additions and 106 deletions

View file

@ -3,26 +3,24 @@
all: ManUtils indexer
ManUtils: lib/ManUtils/inst/lib/perl5/x86_64-linux/ManUtils.pm
ManUtils: ManUtils/blib/lib/ManUtils.pm
lib/ManUtils/inst/lib/perl5/x86_64-linux/ManUtils.pm: lib/ManUtils/Build.PL lib/ManUtils/ManUtils.pm lib/ManUtils/ManUtils.xs web/target/release/libweb.a
-test lib/ManUtils/ManUtils.xs -ot web/target/release/libweb.a && touch -r web/target/release/libweb.a lib/ManUtils/ManUtils.xs
cd lib/ManUtils && perl Build.PL && ./Build install --install-base=inst
touch lib/ManUtils/inst/lib/perl5/x86_64-linux/ManUtils.pm
ManUtils/blib/lib/ManUtils.pm: ManUtils/Makefile.PL ManUtils/ManUtils.pm ManUtils/ManUtils.xs web/target/release/libweb.a
-test ManUtils/ManUtils.xs -ot web/target/release/libweb.a && touch -r web/target/release/libweb.a ManUtils/ManUtils.xs
cd ManUtils && perl Makefile.PL && make
touch ManUtils/blib/lib/ManUtils.pm
web/target/release/libweb.a: web/Cargo.toml web/src/*.rs
cd web && cargo build --release
#strip --strip-unneeded web/target/release/libweb.a
indexer: indexer/target/release/indexer
indexer/target/release/indexer: indexer/Cargo.toml indexer/src/*.rs
cd indexer && cargo build --release
clean:
cd lib/ManUtils && ./Build distclean
rm -rf lib/ManUtils/inst
make -C ManUtils clean
rm -f ManUtils/Makefile.old
cd indexer && cargo clean
cd web && cargo clean