This is a patch for "mathomathic" 16.0.3. It's intended for use with the local distro, and won't work in other contexts. --- mathomatic-16.0.3.old/primes/makefile +++ mathomatic-16.0.3/primes/makefile @@ -21,9 +21,10 @@ LDLIBS += -lm # Install directories follow, installs everything in $(DESTDIR)/usr/local by default. -prefix ?= /usr/local + +prefix ?= __META_PREFIX__ bindir ?= $(prefix)/bin -mandir ?= $(prefix)/share/man +mandir ?= $(prefix)/man # The executables to create: TARGETS = matho-primes matho-pascal matho-sumsq