mirror of
https://github.com/flynx/photobook.git
synced 2025-12-17 09:01:41 +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
|
# NOTE: grep's -z flag generates a bunch if nulls that we need to clean
|
||||||
# out via tr.
|
# out via tr.
|
||||||
DEPENDS.txt: $(MODULE).cls
|
DEPENDS.txt: $(MODULE).cls
|
||||||
cat $< \
|
make depends \
|
||||||
| grep -Ezo '\s*\\RequirePackage(\[[^]]*\])?\{[^}]*\}' \
|
|
||||||
| sed -e 's/.*{\(.*\)}/hard \1\n/' \
|
|
||||||
| grep -a hard \
|
| grep -a hard \
|
||||||
| tr -d '\000' \
|
|
||||||
> $@
|
> $@
|
||||||
|
|
||||||
|
|
||||||
@ -265,6 +262,15 @@ version:
|
|||||||
@echo $(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...
|
# Main targets...
|
||||||
|
|||||||
11
README.md
11
README.md
@ -34,15 +34,14 @@ $ cd ./photobook
|
|||||||
$ make install
|
$ make install
|
||||||
```
|
```
|
||||||
|
|
||||||
The `photobook` document class requres a set of modules to be installed
|
The `photobook` document class requires a set of modules to be installed
|
||||||
for it to function properly, the full list is included in the docs and
|
for it to function, the full list is included in the docs and can be
|
||||||
can be generated (`DEPENDS.txt` file) by calling:
|
printed by calling:
|
||||||
```shell
|
```shell
|
||||||
$ make DEPENDS.txt
|
$ make depends
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If only building the docs is required without installing, do:
|
||||||
If only building the docs is required without installing:
|
|
||||||
```shell
|
```shell
|
||||||
$ make pdf
|
$ make pdf
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user