--- Makefile.orig 2009-10-22 14:19:16.000000000 +0800 +++ Makefile 2014-01-09 21:39:59.000000000 +0800 @@ -1,9 +1,10 @@ -prefix = /usr/local -XROOT = /usr/X11R6 -CC = cc +prefix = ${PREFIX} +XROOT = ${LOCALBASE} CFLAGS += -lX11 -I$(XROOT)/include -L$(XROOT)/lib all: $(CC) $(CFLAGS) *.c -o deskpaint +install: + ${BSD_INSTALL_PROGRAM} -s deskpaint $(DESTDIR)$(prefix)/bin