[hackers] [flate] add 'install' makefile target || pancake

From: <hg_AT_suckless.org>
Date: Tue, 10 Aug 2010 23:13:28 +0000 (UTC)

changeset: 124:9d4b642371b8
tag: tip
user: pancake <pancake_AT_nopcode.org>
date: Wed Aug 11 01:09:43 2010 +0200
files: Makefile
description:
add 'install' makefile target

diff -r 37670036b150 -r 9d4b642371b8 Makefile
--- a/Makefile Sun Aug 08 16:28:50 2010 +0200
+++ b/Makefile Wed Aug 11 01:09:43 2010 +0200
@@ -1,3 +1,6 @@
+DESTDIR?=
+PREFIX?=/usr/local
+
 #CFLAGS=-g -Wall -ansi -pedantic
 CFLAGS=-O3 -Wall -ansi -pedantic
 LDFLAGS=-s
@@ -36,3 +39,7 @@
         gcov -b $+ >/dev/null
         gprof a.out >deflate.gprof
         rm -f a.out *.gcno *.gcda gmon.out
+
+install:
+ mkdir -p ${DESTDIR}${PREFIX}/bin
+ cp sflate ${DESTDIR}${PREFIX}/bin
Received on Wed Aug 11 2010 - 01:13:28 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 11 2010 - 01:24:04 CEST