--- Makefile.orig 2015-08-18 14:59:39.000000000 -0400
+++ Makefile 2015-08-18 14:59:55.000000000 -0400
-DOCDIR=$(DESTDIR)/share/doc
-MANDIR=$(DESTDIR)/share/man
+DOCDIR=@@PREFIX@@/share/doc
+MANDIR=@@PREFIX@@/share/man
VERSION=$(shell cat VERSION)
RELEASE=$(shell sed -n 's/^Release: *\([0-9]*\)/\1/p' mkhexgrid.spec)
DISTDIR=mkhexgrid-$(VERSION)
RPMDIR=/home/uckelman/rpmbuild
-CPPFLAGS=-c -g -O2 -W -Wall -DVERSION='"$(VERSION)"'
-LDFLAGS=-lm -lstdc++ -lgd
+CPPFLAGS=-c -g -O2 -W -Wall -DVERSION='"$(VERSION)"' @@CPPFLAGS@@
+LDFLAGS=-lm -lstdc++ -lgd @@LDFLAGS@@