summaryrefslogtreecommitdiff
path: root/devel/cpuflags/files/Makefile
blob: 72cb5a4c46dbcab4e8ca41bdcd0b5bda536b155f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: Makefile,v 1.5 2005/11/06 15:31:20 abs Exp $

VERSION=0.96

PREFIX?=/usr/local
OPSYS?=`uname`

MANDIR?=${PREFIX}/man/man1
MKDIR?=${PREFIX}/share/mk
BINDIR?=${PREFIX}/bin
INSTALL?=install
SED?=sed

all:
	${SED} -e 's|@PREFIX@|${PREFIX}|g' cpuflags.1 > cpuflags.1.out
	${SED} -e 's|@PREFIX@|${PREFIX}|g' cpuflags.mk > cpuflags.mk.out
	
clean:
	rm -rf *.out out

install:
	mkdir -p ${BINDIR} ${MANDIR}	${MKDIR}
	${INSTALL} cpuflags.${OPSYS}	${BINDIR}/cpuflags
	${INSTALL} cpuflags.1.out	${MANDIR}/cpuflags.1
	${INSTALL} optimize_gcc.mk	${MKDIR}/optimize_gcc.mk
	${INSTALL} cpuflags.mk.out	${MKDIR}/cpuflags.mk

dist:
	mkdir -p out/cpuflags-${VERSION}
	cp Makefile *.* out/cpuflags-${VERSION}
	(cd out;pax -w cpuflags-${VERSION} | bzip2 -9 > cpuflags-${VERSION}.tbz)
	rm -rf out/cpuflags-${VERSION}