mirror of
https://github.com/daylinmorgan/logo.git
synced 2024-11-12 17:43:15 -06:00
fix: delete docker conditional
This commit is contained in:
parent
7530c3cdd5
commit
bbdbda346a
1 changed files with 2 additions and 7 deletions
9
Makefile
9
Makefile
|
@ -4,12 +4,6 @@ SVGS = $(shell find -type f -wholename "./docs/*.svg")
|
||||||
PNGS = $(patsubst ./docs/svg/%.svg,./docs/png/%.png, $(SVGS))
|
PNGS = $(patsubst ./docs/svg/%.svg,./docs/png/%.png, $(SVGS))
|
||||||
REV := $(shell date +'%Y.%m.%d-' )$(shell git describe --always --dirty | sed s'/dirty/dev/')
|
REV := $(shell date +'%Y.%m.%d-' )$(shell git describe --always --dirty | sed s'/dirty/dev/')
|
||||||
|
|
||||||
ifneq ($(DOCKER),true)
|
|
||||||
CONVERT := convert
|
|
||||||
else
|
|
||||||
CONVERT := docker run --rm -v "$$(pwd)":/imgs dpokidov/imagemagick
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all:
|
all:
|
||||||
|
@ -23,7 +17,7 @@ all:
|
||||||
pngs: $(PNGS)
|
pngs: $(PNGS)
|
||||||
|
|
||||||
./docs/png/%.png: ./docs/svg/%.svg
|
./docs/png/%.png: ./docs/svg/%.svg
|
||||||
$(CONVERT) $(if DOCKER=true,/imgs/)$< $(if DOCKER=true,/imgs/)$@
|
convert $< -scale 1024 $@
|
||||||
|
|
||||||
.PHONY: logos
|
.PHONY: logos
|
||||||
## generate all of the logo svgs
|
## generate all of the logo svgs
|
||||||
|
@ -53,6 +47,7 @@ pdm-env: conda-env
|
||||||
## remove old files
|
## remove old files
|
||||||
clean:
|
clean:
|
||||||
rm -f *.svg *.png
|
rm -f *.svg *.png
|
||||||
|
rm -f docs/*.svg
|
||||||
rm -f docs/svg/*
|
rm -f docs/svg/*
|
||||||
rm -f docs/png/*
|
rm -f docs/png/*
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue