Skip to content

Commit

Permalink
Building examples: inform make about *all* dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
sasozivanovic committed Nov 24, 2024
1 parent 5193adb commit 78e21b0
Show file tree
Hide file tree
Showing 13 changed files with 393 additions and 418 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Note that installation from the sources and compilation of the documentation
require a UNIX-like operating system (Windows Subsystem for Linux suffices)
with `make` and several other programs installed. In detail, Memoize's build
system utilizes standard utilities `make`, `bash`, `sed`, `grep`, `perl`,
`pandoc` and `zip`, plus the TeX-specific `latexmk` and `edtx2dtx`, which
`pandoc`, `xargs`, `zip`, plus the TeX-specific `latexmk` and `edtx2dtx`, which
should be included in your TeX distribution.

## For the impatient
Expand Down
11 changes: 2 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,11 @@ pdf := $(PDF:%=doc/%)
DOC = $(codedoc-source) $(manual-source) $(pdf) $(man-src) \
doc/examples-src.zip doc/examples.zip

examples-src := Makefile ins.begin ins.mid ins.end
examples-src := $(examples-src:%=doc/examples/%)
#examples-src += $(shell git ls-files | grep ^doc/examples/.*dtx$)
examples-src += $(shell find doc/examples -name '*.dtx')

doc/examples-src.zip: $(examples-src)
cd doc && zip examples-src.zip $(examples-src:doc/%=%)
$(MAKE) -C doc/examples examples-src.zip

doc/examples.zip: $(examples-src)
mkdir -p doc/examples/attachments
$(MAKE) -C doc/examples
cd doc/examples/attachments && zip -r ../../examples.zip *
$(MAKE) -C doc/examples examples.zip

ctan/$(PACKAGE).zip:
$(TDS-BEGIN)
Expand Down
4 changes: 2 additions & 2 deletions doc/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*.listing.attachment
latexmkrc
_fn.tex
attachments.lst
*idx.orig
examples.zip
examples-src.zip
Loading

0 comments on commit 78e21b0

Please sign in to comment.