update.
[chise/chise-fonts-installer.git] / Makefile.in
index ea989bf..4248c4e 100644 (file)
@@ -1,19 +1,29 @@
+PACKAGE = @PACKAGE_NAME@
 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-gt
+all:   build-intlfonts build-bdf build-truetype
 
-install:       install-intlfonts install-gt
+install:       all \
+       install-intlfonts install-bdf install-truetype install-scripts
+
+install-mac: install install-truetype-mac install-scripts-mac
 
 
 build-intlfonts:       intlfonts-1.2.1/config.log
@@ -30,8 +40,54 @@ install-intlfonts:
        cd intlfonts-1.2.1 && make install
 
 
-build-gt:
-       cd GT && make all
+build-bdf:
+       cd BDF && make all
+
+install-bdf:
+       cd BDF && make install
+
+
+build-truetype:
+       cd TrueType && make all
+
+install-truetype:
+       cd TrueType && make install
+
+install-truetype-mac:
+       cd TrueType && make install-mac
+
+
+install-scripts:
+       -$(MKDIR) $(SCRIPTS_DIR)
+       install -c chise-setup-xfonts $(SCRIPTS_DIR)
+
+install-scripts-mac:   install-scripts
+       sudo cp -pv site-setup-xfonts.sh \
+           /usr/X11/lib/X11/xinit/xinitrc.d/19-site-fontdir.sh
+
+
+distclean:
+       cd BDF && make distclean
+       cd TrueType && make distclean
+       -$(RM) Makefile config.status config.log chise-setup-xfonts
+       -$(RM) -r autom4te.cache/ intlfonts-1.2.1/ GT/
+
+
+distclean-all:
+       cd BDF && make distclean-all
+       cd TrueType && make distclean-all
+       -$(RM) intlfonts-1.2.1.tar.gz
+       -$(RM) Makefile config.status config.log chise-setup-xfonts
+       -$(RM) -r autom4te.cache/ intlfonts-1.2.1/
+
 
-install-gt:
-       cd GT && make install
+tar:
+       cvs commit
+       sh -c 'cvs tag -R $(PACKAGE)-`echo $(VERSION) | tr . _`; \
+       cd /tmp; \
+       cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise \
+               export -d $(PACKAGE)-$(VERSION) \
+               -r $(PACKAGE)-`echo $(VERSION) | tr . _` \
+               $(PACKAGE)'
+       cd /tmp; $(TAR) cvzf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
+       cd /tmp; $(RM) -r $(PACKAGE)-$(VERSION)