f85c5727aa
jp-cdrom2 - A tool to lookup CD-ROM dictionaries in EPWING format
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}
|