Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

makefile changes to build the actual database files

  • Loading branch information...
commit fcee073115ec55cfb04693cd28752099f87f8069 1 parent 44fc65e
@mskala authored
Showing with 16 additions and 12 deletions.
  1. +11 −12 Makefile.am
  2. +5 −0 configure.ac
View
23 Makefile.am
@@ -2,21 +2,20 @@
ACLOCAL_AMFLAGS = -I m4
-KANJI_NAMES := $(patsubst XML/%.xml,%,$(wildcard XML/*.xml))
-XML_FILES := $(patsubst %,XML/%.xml,$(KANJI_NAMES))
-SVG_FILES := $(patsubst %,SVG/%.svg,$(KANJI_NAMES))
-
-MOSTLYCLEANFILES = \
- kanji/*.svg kanji_mismatch/*.svg
+KANJI_NAMES := $(patsubst kanji/%.svg,%,$(wildcard kanji/*.svg))
pkgdata_DATA = \
- kanji/.generated
+ kanjivg-@release_date@.xml.gz \
+ kanjivg-@release_date@-all.zip
+
+kanjivg.xml: kvg.py $(wildcard kanji/*.svg)
+ $(PYTHON_BIN)2 kvg.py release
+
+kanjivg-@release_date@-all.zip: $(wildcard kanji/*.svg)
+ zip -r $@ kanji
-kanji/.generated: \
- mergexml.py $(XML_FILES) $(SVG_FILES)
- rm -rf kanji/ kanji_mismatch/
- $(PYTHON_BIN)2 mergexml.py
- touch kanji/.generated
+kanjivg-@release_date@.xml.gz: kanjivg.xml
+ gzip -c kanjivg.xml >$@
check:
$(PERL) test/run-tests
View
5 configure.ac
@@ -10,13 +10,18 @@ AC_CONFIG_SRCDIR([kvg.py])
AC_CONFIG_MACRO_DIR([m4])
AC_COPYRIGHT([Copyright (C) 2009, 2010, 2011, 2012 Ulrich Apel])
AM_SILENT_RULES
+AC_SUBST([release_date],[`date +%Y%m%d`])
# Checks for programs.
AC_PROG_LN_S
AX_CHECK_GNU_MAKE
+AC_ARG_VAR([GZIP],[gzip])
+AC_PATH_PROG([GZIP],[gzip])
AC_ARG_VAR([PERL],[Perl])
AC_PATH_PROG([PERL],[perl])
AX_PYTHON
+AC_ARG_VAR([ZIP],[zip])
+AC_PATH_PROG([ZIP],[zip])
# Checks for libraries.
Please sign in to comment.
Something went wrong with that request. Please try again.