OSDN Git Service

Fixed mkdir -p make install's target directory.
[canna-yubin/canna-yubin.git] / Makefile
1 # Copyright (C) 2001 Yoshito Komatsu
2 #               2014 Mitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>
3 #
4 # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
5 #
6 # This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
7 #
8 # You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9
10 MKDIR_P=mkdir -p
11 DESTDIR=
12 DICS=yubin7.cbd yubin7.cld
13
14 canna-yubin:
15         diff COPYING debian/copyright
16         ./yu2can.pl > yubin7.ctd.tmp
17         nkf -e yubin7.ctd.tmp > yubin7.ctd
18         mkbindic yubin7.ctd
19
20 cleantmp:
21         rm -f yubin7.ctd yubin7.ctd.tmp
22
23 clean: cleantmp
24         rm -f $(DICS)
25
26 install:
27         $(MKDIR_P) ${DESTDIR}/var/lib/canna/dic/canna
28         install -m 644 ${DICS} ${DESTDIR}/var/lib/canna/dic/canna