Skip to content

Commit

Permalink
Release 0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
TinoDidriksen committed Dec 21, 2020
1 parent cfc5995 commit 100e1a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 61 deletions.
33 changes: 4 additions & 29 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
## Makefile for French--Spanish
###############################################################################

VERSION=0.9.2
LANG1=fr
LANG2=es
PREFIX1=$(LANG1)-$(LANG2)
Expand Down Expand Up @@ -42,14 +41,8 @@ TARGETS_COMMON = \
$(PREFVAR2)$(PREFIX2).autogen.bin \
$(PREFVAR2)$(PREFIX2).automorf.bin

# Use this goal for creating .deps, otherwise make -j2 will give problems:
.deps/.d:
if [ ! -d .deps ]; then mkdir .deps; fi
touch $@

# Prevent the .d file from being removed automatically:
.PRECIOUS: .deps/.d

# This include defines goals for install-modes, .deps/.d and .mode files:
@ap_include@

###############################################################################
## Transducers, disambiguation rules, transfer
Expand Down Expand Up @@ -234,17 +227,10 @@ EXTRA_DIST=$(BASENAME).$(PREFIX1).dix \
###############################################################################

apertium_fr_esdir=$(prefix)/share/apertium/apertium-$(PREFIX1)/
apertium_modesdir=$(prefix)/share/apertium/modes/

modes/$(PREFIX1).mode: modes.xml
apertium-validate-modes modes.xml
apertium-gen-modes modes.xml
cp *.mode modes/

# All modes are created by the same goal, listing several will just give problems with make -j2
noinst_DATA=modes/$(PREFIX1).mode


# Files which should be installed to $(prefix)/share/apertium/$(BASENAME)/:
apertium_fr_es_DATA=$(TARGETS_COMMON) \
$(PREFIX1).prob \
Expand All @@ -256,25 +242,14 @@ apertium_fr_es_DATA=$(TARGETS_COMMON) \
$(BASENAME).$(PREFIX2).t2x \
$(BASENAME).$(PREFIX2).t3x

install-data-local:
mv modes modes.bak
apertium-gen-modes modes.xml apertium-$(PREFIX1)
rm -rf modes
mv modes.bak modes
test -d $(DESTDIR)$(apertium_modesdir) || mkdir $(DESTDIR)$(apertium_modesdir)
$(INSTALL_DATA) $(PREFVAR1)$(PREFIX1).mode $(DESTDIR)$(apertium_modesdir)
$(INSTALL_DATA) $(PREFVAR1)$(PREFIX2).mode $(DESTDIR)$(apertium_modesdir)
$(INSTALL_DATA) $(PREFVAR2)$(PREFIX1).mode $(DESTDIR)$(apertium_modesdir)
$(INSTALL_DATA) $(PREFVAR2)$(PREFIX2).mode $(DESTDIR)$(apertium_modesdir)
rm $(PREFVAR1)$(PREFIX1).mode $(PREFVAR1)$(PREFIX2).mode $(PREFVAR2)$(PREFIX1).mode $(PREFVAR2)$(PREFIX2).mode

install-data-local: install-modes

###############################################################################
## Cleanup
###############################################################################

CLEANFILES = $(TARGETS_COMMON)
clean-local:
clean-local:
-rm -rf .deps modes

###############################################################################
Expand Down
38 changes: 6 additions & 32 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,39 +1,13 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.


AC_PREREQ(2.52)

AC_INIT([apertium-fr-es], [0.9.2], [sortiz@users.sourceforge.net])
AM_INIT_AUTOMAKE([apertium-fr-es], [0.9.2], no-define)
AC_PROG_LN_S
AC_INIT([Apertium French-Spanish], [0.9.3], [apertium-stuff@lists.sourceforge.net], [apertium-fr-es])
AM_INIT_AUTOMAKE
AC_PROG_AWK
AC_CONFIG_HEADER([config])

m4_define([required_apertium_version], [3.2.0])
PKG_CHECK_MODULES(APERTIUM, apertium >= required_apertium_version, [], [PKG_CHECK_MODULES(APERTIUM, apertium-3.2 >= required_apertium_version)])


AC_PATH_PROG(LRXCOMP, lrx-comp, no)
if test x$ac_cv_path_LRXCOMP = x
then
AC_MSG_ERROR([You don't have lrx-comp installed.])
fi
if test x$ac_cv_path_LRXCOMP = xno
then
AC_MSG_ERROR([You don't have lrx-comp installed.])
fi

AC_PATH_PROG(LRXPROC, lrx-proc, no)
if test x$ac_cv_path_LRXPROC = x
then
AC_MSG_ERROR([You don't have lrx-proc installed.])
fi
if test x$ac_cv_path_LRXPROC = xno
then
AC_MSG_ERROR([You don't have lrx-proc installed.])
fi

PKG_CHECK_MODULES(APERTIUM, apertium >= 3.7.0)
PKG_CHECK_MODULES(LTTOOLBOX, lttoolbox >= 3.5.3)
PKG_CHECK_MODULES(APERTIUM_LEX_TOOLS, apertium-lex-tools >= 0.2.6)

AP_MKINCLUDE

AC_OUTPUT([Makefile])

0 comments on commit 100e1a8

Please sign in to comment.