add janky makefile target to build for glibc-2.31+
"make compile-on-debian-11" should work now...
This commit is contained in:
parent
07f30a1356
commit
71a56a8645
1 changed files with 17 additions and 0 deletions
17
Makefile
17
Makefile
|
@ -24,3 +24,20 @@ uninstall:
|
||||||
clean:
|
clean:
|
||||||
rm $(DIR_BUILD)/$(BIN)
|
rm $(DIR_BUILD)/$(BIN)
|
||||||
|
|
||||||
|
compile-on-debian-11:
|
||||||
|
# builds repo2html compatible with systems running glibc-2.31 and higher.
|
||||||
|
#
|
||||||
|
# this will download a debian docker container that has glibc 2.31, then
|
||||||
|
# download chicken scheme, gcc compiler, and tons of related packages, then
|
||||||
|
# download all the dependency eggs, then compile them, then compile this
|
||||||
|
# project, then except for that one output executable it will delete
|
||||||
|
# *everything* it has done and downloaded including any caches meant to
|
||||||
|
# save you some time and bandwidth the next time you need to compile this
|
||||||
|
#
|
||||||
|
# what i'm saying is, if we need to run this frequently, we should find a
|
||||||
|
# better mechanism. providing a dockerfile would probably be sufficient...
|
||||||
|
docker run --rm -it -v "$(shell pwd)":/tmp/x -w /tmp/x debian:bullseye-slim sh -c '\
|
||||||
|
apt update &&\
|
||||||
|
apt install -y chicken-bin build-essential make &&\
|
||||||
|
make dependencies &&\
|
||||||
|
make compile'
|
||||||
|
|
Loading…
Reference in a new issue