Skip to content

Commit

Permalink
fix(build): Avoid building sile binaries if not using them
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jun 27, 2024
1 parent 26a6346 commit bbde8e6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@ TESTPREVIEWS ?= $(addsuffix .pdf,$(basename $(filter-out $(_DISABLEDSRCS),$(_TES
include $(wildcard Makefile-distfiles)

FIGURES = documentation/fig-input-to-output.pdf

MANUAL := documentation/sile.pdf
SILELUA := $(PACKAGE_NAME)-lua

if MANUAL
_MANUAL = $(MANUAL)

endif

$(MANUAL): $(FIGURES)
Expand All @@ -76,7 +74,7 @@ EXTRA_DIST += build-aux/action-updater.js build-aux/cargo-updater.js build-aux/c
EXTRA_DIST += Dockerfile build-aux/docker-bootstrap.sh build-aux/docker-fontconfig.conf hooks/build
EXTRA_DIST += default.nix flake.nix flake.lock shell.nix build-aux/pkg.nix
EXTRA_DIST += package.json # imported by both Nix and Docker
EXTRA_DIST += $(MANUAL) $(FIGURES)
EXTRA_DIST += $(FIGURES)
EXTRA_DIST += src/embed.rs.in
EXTRA_DIST += sil.abnf

Expand Down Expand Up @@ -166,7 +164,7 @@ LOCALPATHS := SILE_PATH="$(PWD);libtexpdf/.libs;justenough/.libs"
SILEFLAGS ?= -m $(DEPDIR)/$(basename $@).d -d versions -f fontconfig
DRAFT ?= false

dist-hook: $(MANUAL) dist-hook-distfiles
dist-hook: dist-hook-distfiles

.PHONY: dist-hook-distfiles
dist-hook-distfiles:
Expand Down

0 comments on commit bbde8e6

Please sign in to comment.