mirror of
https://github.com/flynx/photobook.git
synced 2025-12-17 00:51:39 +00:00
cleanup + make ergonomics...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f094d073b5
commit
561273e27c
14
Makefile
14
Makefile
@ -248,11 +248,8 @@ LN := cp -l
|
||||
# NOTE: grep's -z flag generates a bunch if nulls that we need to clean
|
||||
# out via tr.
|
||||
DEPENDS.txt: $(MODULE).cls
|
||||
cat $< \
|
||||
| grep -Ezo '\s*\\RequirePackage(\[[^]]*\])?\{[^}]*\}' \
|
||||
| sed -e 's/.*{\(.*\)}/hard \1\n/' \
|
||||
make depends \
|
||||
| grep -a hard \
|
||||
| tr -d '\000' \
|
||||
> $@
|
||||
|
||||
|
||||
@ -265,6 +262,15 @@ version:
|
||||
@echo $(VERSION)
|
||||
|
||||
|
||||
.PHONY: depends
|
||||
depends: $(MODULE).cls
|
||||
@cat $< \
|
||||
| grep -Ezo '\s*\\RequirePackage(\[[^]]*\])?\{[^}]*\}' \
|
||||
| sed -e 's/.*{\(.*\)}/hard \1\n/' \
|
||||
| grep -a hard \
|
||||
| tr -d '\000'
|
||||
|
||||
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# Main targets...
|
||||
|
||||
11
README.md
11
README.md
@ -34,15 +34,14 @@ $ cd ./photobook
|
||||
$ make install
|
||||
```
|
||||
|
||||
The `photobook` document class requres a set of modules to be installed
|
||||
for it to function properly, the full list is included in the docs and
|
||||
can be generated (`DEPENDS.txt` file) by calling:
|
||||
The `photobook` document class requires a set of modules to be installed
|
||||
for it to function, the full list is included in the docs and can be
|
||||
printed by calling:
|
||||
```shell
|
||||
$ make DEPENDS.txt
|
||||
$ make depends
|
||||
```
|
||||
|
||||
|
||||
If only building the docs is required without installing:
|
||||
If only building the docs is required without installing, do:
|
||||
```shell
|
||||
$ make pdf
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user