mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
30 lines
541 B
Makefile
30 lines
541 B
Makefile
|
# $Id$
|
||
|
#
|
||
|
|
||
|
# Installation prefix:
|
||
|
PREFIX?=/usr/local
|
||
|
BINDIR=${PREFIX}/bin
|
||
|
LIBDIR=${PREFIX}/lib/cdrom2
|
||
|
PROGRAMS=cdrom2 cdgaiji
|
||
|
TBL_FILES=kojien3.tbl ruigo.tbl
|
||
|
|
||
|
all: ${PROGRAMS}
|
||
|
|
||
|
cdrom2: cdrom2.c
|
||
|
cc -DUNIX -O -o cdrom2 cdrom2.c
|
||
|
|
||
|
cdgaiji: cdgaiji.c
|
||
|
cc -DUNIX -O -o cdgaiji cdgaiji.c
|
||
|
|
||
|
install:
|
||
|
for f in ${PROGRAMS} ; do \
|
||
|
/usr/bin/install -c -s -o bin -g bin -m 755 $$f ${BINDIR} ;\
|
||
|
done
|
||
|
/bin/mkdir -p ${LIBDIR}
|
||
|
for f in ${TBL_FILES} ; do \
|
||
|
/usr/bin/install -c -o bin -g bin -m 644 $$f ${LIBDIR} ;\
|
||
|
done
|
||
|
|
||
|
clean:
|
||
|
rm -f ${PROGRAMS}
|