MACHINE := $(shell uname -m) ifeq ($(MACHINE), x86_64) libdir = ${PREFIX}/lib64 endif ifeq ($(MACHINE), i686) libdir = ${PREFIX}/lib endif INSTALL = install LIBS = libpsyc.a libpsyc.so install: ${LIBS} libdir: ${INSTALL} -d ${libdir} ${LIBS}: libdir -${INSTALL} $@ ${libdir} clean: rm -f ${LIBS}