Makefile : fallback to black icons when ImageMagick is not available.
This commit is contained in:
parent
4c1251a962
commit
cf2d1cf456
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue