blob: abe71966a0a94e96a7f58fa8bfd9268e92980c7d (
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.4 2005/10/23 14:03:39 rillig Exp $
VERSION=0.89
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}
|