#!gmake -k -R

# Convert xfig files to eepic

FIG2DEV = /igd/a4/software/xfig/fig2dev

.SUFFIXES:
.SUFFIXES: .fig .eepic

.SECONDARY:

#PICDIR := ../Pic_fig
PICDIR := .
ifeq "$(wildcard $(PICDIR))" ""
$(warning making directory $(PICDIR))
$(shell mkdir $(PICDIR))
endif

.PHONY: all pic

all: pic

PICS := $(addprefix $(PICDIR)/,$(subst .fig,.eepic,$(wildcard *.fig)))

pic: $(PICDIR) $(PICS)
	@echo eepic finished.

$(PICDIR)/%.eepic : %.fig 
	@echo making $@ ..
	@$(FIG2DEV) -L eepic -W -F -R $< $@
# -v = verbose comments in eepic file
# -W = enable variable line width
# -F = only set font size with each text
# -R = allow rotated text (uses \rotatebox)


