Skip to content

Commit

Permalink
Add build-autotools target to fedora docker makefile
Browse files Browse the repository at this point in the history
For building Fedora packages
  • Loading branch information
d-torrance authored and mahrud committed Nov 3, 2024
1 parent 7c72dac commit 34dc599
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions M2/BUILD/docker/fedora/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,24 @@ BUILD_OPT = -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
rpm:; docker run $(VOLUME) -it --entrypoint "" $(TAG) bash -c "cd M2/$(BUILD_DIR); cpack -G RPM"

rpmlint:; docker run $(VOLUME) -it --entrypoint "" $(TAG) bash -c "rpmlint M2/$(BUILD_DIR)/Macaulay2-*.rpm"

## autotools build
## TODO: generalize this to other distros, move to toplevel Makefile

CONFIG_OPT = --with-system-gc --with-system-memtailor --with-system-mathic \
--with-system-mathicgb --enable-download --enable-rpm --prefix=/usr

define M2_BUILD_SCRIPT_autotools
set -xe

mkdir -p M2/$(BUILD_DIR)
cd M2/$(BUILD_DIR)
$(M2_HOME)/M2/M2/autogen.sh
$(M2_HOME)/M2/M2/configure $(CONFIG_OPT)
make
endef
export M2_BUILD_SCRIPT_autotools

build-autotools: build-image
docker run $(VOLUME) -it --entrypoint="" $(TAG) \
bash -c "$$M2_BUILD_SCRIPT_autotools"

0 comments on commit 34dc599

Please sign in to comment.