# Change these to point to the installed dpic:
HOMELIB = $$HOME/lib

M4 = m4 -B16000
M4 = m4

LIB = xfiglib
M4MACROS = $(HOMELIB)/xfig.m4
DPIC = $$HOME/dpic/test/dpic
DPIC = dpic
# DPIC = $$HOME/dpic/test/dpic

.SUFFIXES: .m4 .pic .fig
.m4.fig:
	$(M4) $(M4MACROS) $*.m4 > $*.pic
	$(DPIC) -x $*.pic > $*.fig

$(LIB).fig: $(LIB).m4

clobber: clean
	rm -f *.fig

clean:
	rm -f *.pic