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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
|
# SKK JISYO TOOLS (SKK dictionary handling tools)
# Copyright (C) 1994, 1996, 1999, 2000, 2002
# Hironobu Takahashi, Masahiko Sato, Kiyotaka Sakai, Kenji Yabuuchi
#
# Author: Hironobu Takahashi, Masahiko Sato, Kiyotaka Sakai, Kenji Yabuuchi
# Maintainer: SKK Development Team <skk@ring.gr.jp>
# Version: $Id: Makefile.in,v 1.14 2007/09/21 23:32:51 skk-cvs Exp $
# Keywords: japanese
# Last Modified: $Date: 2007/09/21 23:32:51 $
#
# This file is part of Daredevil SKK
#
# SKK JISYO TOOLS are free software; you can redistribute them and/or modify
# them under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# SKK JISYO TOOLS are distributed in the hope that they 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.
#
# You should have received a copy of the GNU General Public License
# along with SKK; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
#### Start of system configuration section. ####
SHELL = /bin/sh
VERSION = @VERSION@
@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
CC = @CC@
CFLAGS = @CFLAGS@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
BZIP2 = @BZIP2@
DATE = @DATE@
GZIP = @GZIP@
MD5 = @MD5@
TAR = @TAR@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
GLIB_CFLAGS = @GLIB2_CFLAGS@
GLIB_LIBS = @GLIB2_LIBS@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
EXEEXT= @EXEEXT@
DEFS = -I. -I$(srcdir) -I$(top_srcdir) $(CFLAGS)
SNAPBASE = skktools-`$(DATE) '+%Y%m%d'`
TARGETS = skkdic-expr$(EXEEXT) skkdic-sort$(EXEEXT) skkdic-count$(EXEEXT) @SKKDIC_EXPR2@
SRCS = skkdic-expr.c skkdic-sort.c skkdic-count.c skkdic-expr2.c
all: $(TARGETS)
skkdic-expr$(EXEEXT): $(srcdir)/skkdic-expr.c
$(CC) $(DEFS) -o $@ $(srcdir)/skkdic-expr.c $(LIBS)
skkdic-sort$(EXEEXT): $(srcdir)/skkdic-sort.c
$(CC) $(DEFS) -o $@ $(srcdir)/skkdic-sort.c
skkdic-count$(EXEEXT): $(srcdir)/skkdic-count.c
$(CC) $(DEFS) -o $@ $(srcdir)/skkdic-count.c
skkdic-expr2$(EXEEXT): $(srcdir)/skkdic-expr2.c
$(CC) $(DEFS) $(GLIB_CFLAGS) -o $@ $(srcdir)/skkdic-expr2.c $(GLIB_LIBS) $(LDFLAGS)
${srcdir}/configure: configure.ac #aclocal.m4
cd ${srcdir} && autoconf
# autoheader might not change config.h.in, so touch a stamp file.
#${srcdir}/config.h.in: stamp-h.in
#${srcdir}/stamp-h.in: configure.ac aclocal.m4 acconfig.h config.h.top config.h.bot
# cd ${srcdir} && autoheader
# echo timestamp > ${srcdir}/stamp-h.in
#
#config.h: stamp-h
#
#stamp-h: config.h.in config.status
# ./config.status
Makefile: Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck
install: $(TARGETS)
$(srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
@list="$(TARGETS)"; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/"; \
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/; \
else :; fi; \
done
install-strip: $(TARGETS)
$(MAKE) install INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s"
uninstall:
@list="$(TARGETS)"; for p in $$list; do \
echo " rm -f $(DESTDIR)$(bindir)/$$p"; \
rm -f $(DESTDIR)$(bindir)/$$p; \
done
clean:
rm -f $(TARGETS) core
distclean:
rm -f config.h config.status config.cache config.log Makefile $(TARGETS) core
TAGS: $(SRCS)
etags $(SRCS)
tar: clean
cd .. ;\
rm -f skktools-$(VERSION) skktools-$(VERSION) skktools-$(VERSION).tar.gz skktools-$(VERSION).tar.bz2 ;\
ln -sf tools skktools-$(VERSION) ;\
$(TAR) cvpf skktools-$(VERSION).tar --exclude-from=skktools-$(VERSION)/skk.ex \
--dereference skktools-$(VERSION) ;\
$(GZIP) -cf skktools-$(VERSION).tar > skktools-$(VERSION).tar.gz ;\
rm -f skktools-$(VERSION).tar ;\
rm -f skktools-$(VERSION) ;\
$(MD5) skktools-$(VERSION).tar.gz >skktools-$(VERSION).tar.gz.md5
snapshot: clean
cd .. ;\
rm -f skktools-$(VERSION) skktools-$(VERSION) skktools-$(VERSION).tar.gz skktools-$(VERSION).tar.bz2 ;\
rm -f $(SNAPBASE) ;\
ln -sf tools $(SNAPBASE) ;\
$(TAR) cvpf $(SNAPBASE).tar --exclude-from=$(SNAPBASE)/skk.ex --dereference $(SNAPBASE) ;\
$(BZIP2) -cf $(SNAPBASE).tar > $(SNAPBASE).tar.bz2 ;\
$(GZIP) -cf $(SNAPBASE).tar > $(SNAPBASE).tar.gz ;\
rm -f $(SNAPBASE).tar ;\
rm -f $(SNAPBASE) ;\
$(MD5) $(SNAPBASE).tar.bz2 >$(SNAPBASE).tar.bz2.md5 ;\
$(MD5) $(SNAPBASE).tar.gz >$(SNAPBASE).tar.gz.md5
.PHONY: clean distclean
|