Makefile : fallback to black icons when ImageMagick is not available.

This commit is contained in:
Dmitry Voronin 2023-08-02 17:59:18 +03:00
parent 4c1251a962
commit cf2d1cf456
2 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ clean:
icon:
@mkdir -p $(build)/image;\
cd image/icon;\
for file in *; do convert "$$file" -fill "#$$RESUME_COLOR" -colorize 100 $(build)/image/"$$file"; done
for file in *; do convert "$$file" -fill "#$$RESUME_COLOR" -colorize 100 $(build)/image/"$$file" &> /dev/null || cp "$$file" $(build)/image/; done
.PHONY: en
en: icon

View file

@ -18,7 +18,7 @@ view | View built resumes in default PDF viewer.
## Requirements.
* `GNU/Linux` (not tested on other platforms).
* `LuaLaTeX` for the document itself.
* `ImageMagick` for colored icons.
* `ImageMagick` (optional) for colored icons.
### Texlive setup.
```text
@ -35,4 +35,4 @@ To install them use `$ tlmgr install $dependency`.
## TODO.
- [x] Change icon color programmatically.
- [ ] Fallback for using black icons if ImageMagick is not available.
- [x] Fallback for using black icons if ImageMagick is not available.