(MKDIR): New variable.
authortomo <tomo>
Fri, 11 Dec 2009 04:33:27 +0000 (04:33 +0000)
committertomo <tomo>
Fri, 11 Dec 2009 04:33:27 +0000 (04:33 +0000)
(datadir): New variable.
(SCRIPTS_DIR): New variable.
(install): Call `all' and `install-scripts'.
(install-scripts): New target.
(distclean): Delete `chise-setup-xfonts'.

Makefile.in

index e8d3f1e..2d78019 100644 (file)
@@ -2,18 +2,26 @@ VERSION = @PACKAGE_VERSION@
 
 TAR    = tar
 WGET   = wget
+MKDIR  = mkdir -p
 SUDO   = 
 
 prefix         = @prefix@
 exec_prefix    = @exec_prefix@
+
+datadir        = @datadir@
+
 BINDIR         = @bindir@
 LIBDIR         = @libdir@
+SCRIPTS_DIR    = $(datadir)/scripts
+
 OPTS           = @ac_configure_args@
 
 
 all:   build-intlfonts build-bdf build-truetype build-gt
 
-install:       install-intlfonts install-bdf install-truetype install-gt
+install:       all \
+       install-intlfonts install-bdf install-truetype install-gt \
+       install-scripts
 
 
 build-intlfonts:       intlfonts-1.2.1/config.log
@@ -51,9 +59,14 @@ install-gt:
        cd GT && make install
 
 
+install-scripts:
+       -$(MKDIR) $(SCRIPTS_DIR)
+       install -c chise-setup-xfonts $(SCRIPTS_DIR)
+
+
 distclean:
        cd BDF && make distclean
        cd TrueType && make distclean
        cd GT && make distclean
-       -$(RM) Makefile config.status config.log
+       -$(RM) Makefile config.status config.log chise-setup-xfonts
        -$(RM) -r autom4te.cache/ intlfonts-1.2.1/ intlfonts-1.2.1.tar.gz