1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
%.o: %.c cc -x c++ -c -O $< BINDIR = /usr/local/bin all: LIB EPS EPS: ( cd eps; $(MAKE) ) LIB: ( cd lib; $(MAKE) ) install: ( cd eps; $(MAKE) install BINDIR=${BINDIR} ) clean: for dir in lib eps; do \ ( cd $$dir; $(MAKE) clean ) \ done