aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2013-12-28 15:21:06 -0800
committerJohn Hawthorn <john.hawthorn@gmail.com>2013-12-28 15:21:06 -0800
commit6040b2ef005a427190a6173427a08b38e41697b6 (patch)
tree45b9ebbab7825d4bb4b4cdbc31aabad4d74bd122 /Makefile
parent79bb6f0c99ceeeff529f07101edd47747d7b8e45 (diff)
parentca40c3725d622270640b3121642cb5febc4e0e87 (diff)
downloadmirror-meh-6040b2ef005a427190a6173427a08b38e41697b6.tar.gz
mirror-meh-6040b2ef005a427190a6173427a08b38e41697b6.tar.bz2
mirror-meh-6040b2ef005a427190a6173427a08b38e41697b6.zip
Merge pull request #7 from rtandy/for-hawth
a few patches
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0e3a5dd..40fed53 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,8 @@ CLEANFILES := $(CLEANFILES) $(DEPFILES) $(OBJFILES) test/test.o test/test.d test
LIBS ?= -lX11 -lXext -ljpeg -lpng -lgif
PREFIX ?= /usr/local
BINDIR = $(PREFIX)/bin
+DATAROOTDIR = $(PREFIX)/share
+MANDIR = $(DATAROOTDIR)/man
# User configuration
CONFIG ?= ../config
@@ -32,7 +34,8 @@ test/test: test/test.o $(filter-out src/main.o src/xlib.o, $(OBJFILES))
$(CC) $(CFLAGS) -MMD -MP -MT "$*.d" -c -o $@ $<
install:
- install -Dm 755 meh $(BINDIR)
+ install -Dm 755 meh $(DESTDIR)$(BINDIR)/meh
+ install -D doc/meh.1 $(DESTDIR)$(MANDIR)/man1/meh.1
# Clean
clean: