Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
create conv subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Feb 5, 2014
1 parent c4f686e commit 4441025
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions manuals/images/Makefile
@@ -1,23 +1,28 @@
CONVERT=convert
COPY=cp
MKDIRCONV=mkdir -p conv/

ORIG_EPS = $(wildcard *.eps)
CONV_EPS = $(patsubst %.eps,conv/%.eps,$(ORIG_EPS))
CONV_PNG = $(patsubst %.eps,conv/%.png,$(ORIG_EPS))

all: $(CONV_EPS) $(CONV_PNG) conv/bareos-full-logo.png conv/bareos-full-logo.eps

conv/%.png: %.eps
$(CONVERT) $< conv/`basename $< .eps`.png

# bareos-full-logo: png is of better quality than eps, therefore take that as source
conv/bareos-full-logo.eps: bareos-full-logo.png
@$(MKDIRCONV)
$(CONVERT) bareos-full-logo.png conv/bareos-full-logo.eps

conv/bareos-full-logo.png: bareos-full-logo.png
@$(MKDIRCONV)
$(COPY) bareos-full-logo.png conv/

conv/%.png: %.eps
@$(MKDIRCONV)
$(CONVERT) $< conv/`basename $< .eps`.png

conv/%.eps: %.eps
@$(MKDIRCONV)
$(COPY) $< conv/$<

clean:
Expand Down

0 comments on commit 4441025

Please sign in to comment.