Commit 15a12e10 authored by Ziirish's avatar Ziirish

switching from old autotools to cmake

parent ce7f8281
*.o
Makefile
Makefile.in
aclocal.m4
autom4te.cache/
cid.pc
config.guess
config.h
config.h.in
config.h.in~
config.log
config.status
config.sub
configure
data/Makefile
data/Makefile.in
data/cid.conf
depcomp
doc/dox.config
doc/latex/
doc/html/
install-sh
libtool
ltmain.sh
missing
po/Makefile
po/Makefile.in
po/POTFILES
po/stamp-it
src/.deps/
src/Makefile
src/Makefile.in
src/cid
stamp-h1
doc/html
doc/latex
src/config.h
File mode changed from 100755 to 100644
########### requirements ###############
cmake_minimum_required (VERSION 2.6)
find_package (PkgConfig)
include (CheckLibraryExists)
include (CheckIncludeFiles)
include (CheckFunctionExists)
include (CheckSymbolExists)
############ sources tarball ############
#set (CPACK_SOURCE_GENERATOR "TGZ")
#set (CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}")
#set (CPACK_SOURCE_IGNORE_FILES
# "/build/;/.bzr/;bzrignore$;/config.h$;/gldi-config.h$;/scripts/;/doc/;/misc/;~$;${CPACK_SOURCE_IGNORE_FILES}")
#include (CPack)
#add_custom_target( dist
# COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
#add_custom_target(dist-bzr
# COMMAND bzr export ${CMAKE_PROJECT_NAME}-${VERSION}.tar.gz
# WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
########### global variables ###############
set (PACKAGE ${CMAKE_PROJECT_NAME})
set (GETTEXT_PACKAGE ${PACKAGE})
set (prefix ${CMAKE_INSTALL_PREFIX})
set (exec_prefix ${prefix})
set (datadir ${prefix}/share)
set (pkgdatadir ${datadir}/cid)
set (mandir ${datadir}/man)
if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT "${FORCE_LIB64}" STREQUAL "") # 64bits and force install in lib64
set (libdir ${prefix}/lib64)
else()
set (libdir ${prefix}/lib${LIB_SUFFIX})
endif()
set (includedir ${prefix}/include)
set (bindir ${prefix}/bin)
########### project ###############
project ("cid")
set (VERSION "1.1.6-dev")
add_definitions (-W -Werror -fno-builtin -g) #-Wunreachable-code -Wno-unused-parameter -Wall
if (NOT ${CMAKE_BUILD_TYPE})
add_definitions (-O3)
endif()
add_definitions (-DCID_DEFAULT_IMAGE="${pkgdatadir}/default.svg")
add_definitions (-DCID_CONFIG_FILE="cid.conf")
add_definitions (-DCID_MODULES_DIR="${libdir}/${PACKAGE}")
add_custom_target (uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
########### dependencies ###############
pkg_check_modules ("PACKAGE" REQUIRED "gtk+-2.0" "dbus-1" "dbus-glib-1" "libxml-2.0" "gthread-2.0" "libcurl" "x11" "cairo" "libcrypto")
#pkg_check_modules ("XEXTEND" "xtst" "xcomposite" "xinerama")
#if (${XEXTEND_FOUND})
# set (HAVE_XEXTEND 1)
# set (xextend_required "xtst xcomposite xinerama") # pour le .pc
#endif()
# We use crypt(3) which may be in libc, or in libcrypt (eg FreeBSD)
#check_library_exists (crypt encrypt "" HAVE_LIBCRYPT)
#if (${HAVE_LIBCRYPT})
# set (LIBCRYPT_LIBS "-lcrypt")
#endif()
check_include_files ("math.h" HAVE_MATH_H)
check_symbol_exists (LC_MESSAGES "locale.h" HAVE_LC_MESSAGES)
CHECK_LIBRARY_EXISTS (m sin "" HAVE_LIBM)
#MESSAGE (STATUS)
#MESSAGE (STATUS "C.I.D. will be compiled with the following options :")
#if (${XEXTEND_FOUND})
# MESSAGE (STATUS " * Use X Extensions : yes")
#else()
# MESSAGE (STATUS " * Use X Extensions : no")
#endif()
#if (${HAVE_LIBCRYPT})
# MESSAGE (STATUS " * crypt passwords : yes")
#else()
# MESSAGE (STATUS " * crypt passwords : no")
#endif()
#MESSAGE (STATUS)
########### next steps ###############
add_subdirectory (src)
add_subdirectory (data)
add_subdirectory (po)
########### variables defined at compil time ###############
set (CID_DATA_DIR ${pkgdatadir})
set (CID_LOCALE_DIR ${datadir}/locale)
set (CID_GETTEXT_PACKAGE ${GETTEXT_PACKAGE})
########### file generation ###############
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake.in ${CMAKE_CURRENT_SOURCE_DIR}/src/config.h)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/data/cid.conf.in ${CMAKE_CURRENT_BINARY_DIR}/data/cid.conf)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/cid.pc.in ${CMAKE_CURRENT_BINARY_DIR}/cid.pc)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake IMMEDIATE @ONLY)
########### install files ###############
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/cid.pc DESTINATION ${libdir}/pkgconfig)
File mode changed from 100755 to 100644
SUBDIRS = . src data po
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = cid.pc
scriptdir = ${bindir}
EXTRA_DIST = \
intltool-extract.in\
intltool-merge.in\
intltool-update.in\
LICENSE
NEWS 100755 → 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
STRING(REGEX REPLACE "\n" ";" files "${files}")
FOREACH(file ${files})
MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
IF(EXISTS "$ENV{DESTDIR}${file}")
EXEC_PROGRAM(
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval
)
IF(NOT "${rm_retval}" STREQUAL 0)
MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
ENDIF(NOT "${rm_retval}" STREQUAL 0)
ELSE(EXISTS "$ENV{DESTDIR}${file}")
MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
ENDIF(EXISTS "$ENV{DESTDIR}${file}")
ENDFOREACH(file)
#ifndef __CID_BUILD_CONFIG_H__
#define __CID_BUILD_CONFIG_H__
/* always defined to indicate that i18n is enabled */
#define ENABLE_NLS 1
/* Gettext package. */
#define GETTEXT_PACKAGE @GETTEXT_PACKAGE@
/* Define to 1 if you have the `bind_textdomain_codeset' function. */
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
/* Define to 1 if you have the `dcgettext' function. */
#define HAVE_DCGETTEXT 1
/* Define if the GNU gettext() function is already present or preinstalled. */
#define HAVE_GETTEXT 1
/* Define if your <locale.h> file defines LC_MESSAGES. */
#cmakedefine HAVE_LC_MESSAGES @HAVE_LC_MESSAGES@
/* Define to 1 if you have the `m' library (-lm). */
#cmakedefine HAVE_LIBM @HAVE_LIBM@
/* Define to 1 if you have the <math.h> header file. */
#cmakedefine HAVE_MATH_H @HAVE_MATH_H@
// Appli
#define CID_GETTEXT_PACKAGE "@CID_GETTEXT_PACKAGE@"
#define CID_VERSION "@VERSION@"
#define CID_DATA_DIR "@CID_DATA_DIR@"
#define CID_LOCALE_DIR "@CID_LOCALE_DIR@"
#endif
AC_PREREQ(2.59)
AC_INIT([CID], [1.1.6-dev], [Benjamin SANS (sans_ben@yahoo.fr)])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE(foreign)
AC_PROG_LIBTOOL
IT_PROG_INTLTOOL()
AC_SUBST(ALL_LINGUAS)
AM_GLIB_GNU_GETTEXT
GETTEXT_PACKAGE=cid
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
AC_SUBST(GETTEXT_PACKAGE)
# Checks for programs.
# gcc
AC_PROG_CC
# Checks for header files.
AC_HEADER_STDC
# Checks for libraries.
PKG_CHECK_MODULES(PACKAGE, "gtk+-2.0 dbus-1 dbus-glib-1 libxml-2.0 gthread-2.0 libcurl libcrypto x11 cairo")
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
# We use crypt(3) which may be in libc, or in libcrypt (eg FreeBSD)
AC_CHECK_LIB(crypt, crypt, LIBCRYPT_LIBS="-lcrypt")
AM_CONDITIONAL( [HAVE_LIBCRYPT], [test "$LIBCRYPT_LIBS" != ""] )
AC_SUBST(LIBCRYPT_LIBS)
AC_ARG_ENABLE(e17,
[ --enable-e17 : Enable Enlightenment support],
[case "${enableval}" in
yes) usee17=true ;;
no) usee17=false ;;
*) echo "bad value ${enableval} for --enable-e17" ;;
esac],[usee17=false])
AC_ARG_ENABLE(compiz,
[ --enable-compiz : Enable Compiz support],
[case "${enableval}" in
yes) usecompiz=true ;;
no) usecompiz=false ;;
*) echo "bad value ${enableval} for --enable-compiz" ;;
esac],[usecompiz=false])
#AC_ARG_ENABLE(opengl,
# [ --enable-opengl : Enable OpenGL],
# [case "${enableval}" in
# yes) useopengl=true ;;
# no) useopengl=false ;;
# *) echo "bad value ${enableval} for --enable-opengl" ;;
# esac],[useopengl=false])
#if test "$useopengl" = "true" ; then
# PKG_CHECK_MODULES(OPENGL, "gtkglext-1.0", [opengl_detected=true], [opengl_detected=false; AC_MSG_WARN(Could not find dtkdlext-1.0; C.I.D. won't be built with OpenGL support.)])
# AC_SUBST(OPENGL_CFLAGS)
# AC_SUBST(OPENGL_LIBS)
# if test ! "$opengl_detected" = "false" ; then
# AC_DEFINE(HAVE_OPENGL,"1",[Defined if we can use OpenGL.])
# fi
#fi
#if test "$opengl_detected" = "true" ; then
# opengl_required="gtkglext-1.0"
#else
# opengl_required=""
#fi
#AC_SUBST(opengl_required)
#AM_CONDITIONAL( [WITH_OPENGL], [test "$opengl_detected" = "true" ] )
AM_CONDITIONAL( [E17_ENABLE], [test "$usee17" = "true" ] )
AM_CONDITIONAL( [COMPIZ_ENABLE], [test "$usecompiz" = "true" ])
AC_CONFIG_FILES([
Makefile
cid.pc
src/Makefile
data/Makefile
data/cid.conf
po/Makefile.in
doc/dox.config
])
AC_OUTPUT
echo "C.I.D. will be compiled with the following options :"
#if test "$opengl_detected" = "true" ; then
# echo " * Use OpenGL : yes"
#else
# echo " * Use OpenGL : no"
#fi
if test "$usee17" = "true" ; then
echo " * Enable E17 : yes"
else
echo " * Enable E17 : no"
fi
if test "$usecompiz" = "true" ; then
echo " * Enable Compiz : yes"
else
echo " * Enable Compiz : no"
fi
########### install files ###############
install (FILES
animation.png
connect.png
cross.png
default.svg
disconnect.png
next-red.png
next-white.png
next-yellow.png
options.png
pause-red.png
pause-white.png
pause-yellow.png
play-red.png
play-white.png
play-yellow.png
prev-red.png
prev-white.png
prev-yellow.png
DESTINATION ${pkgdatadir})
install (FILES
${CMAKE_CURRENT_BINARY_DIR}/cid.conf
DESTINATION ${pkgdatadir})
# appli
install (FILES
default.svg
DESTINATION ${datadir}/pixmaps)
install (FILES
cid.desktop
DESTINATION ${datadir}/applications)
SUBDIRS = .
essentialdatadir = $(pkgdatadir)
essentialdata_DATA = \
animation.png \
options.png \
default.svg \
play-white.png \
pause-white.png \
next-white.png \
prev-white.png \
play-yellow.png \
pause-yellow.png \
next-yellow.png \
prev-yellow.png \
play-red.png \
pause-red.png \
next-red.png \
prev-red.png \
cross.png \
connect.png \
disconnect.png \
cid.conf
EXTRA_DIST = $(essentialdata_DATA) \
cid
File mode changed from 100755 to 100644
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=cairo-dock -o
Icon=cairo-dock.svg
Terminal=false
Comment=Cairo-Dock with OpenGL (hardware acceleration)
Comment[be]=Cairo-Dock з OpenGL (апаратнае паскарэньне)
Comment[ca]=Cairo-Dock amb OpenGL (acceleració per maquinari)
Comment[cs]=Cairo-Dock s OpenGL (hardwarová akcelerace)
Comment[de]=Cairo-Dock (benutzt OpenGL zur Hardwarebeschleunigung)
Comment[el]=Cairo-Dock με OpenGL (επιτάχυνση υλικού)
Comment[es]=Cairo-Dock con OpenGL (aceleración de hardware)
Comment[fi]=Cairo-Dockin OpenGL-versio (laitteistokiihdytys käytössä)
Comment[fr]=Cairo-Dock avec OpenGL (accélération matérielle)
Comment[hu]=Cairo-Dock OpenGL-lel (hardveres gyorsítás)
Comment[it]=Cairo-Dock con OpenGL (accelerazione hardware)
Comment[ja]=OpenGL版 Cairo-Dock (ハードウェア・アクセラレーション)
Comment[nb]=Cairo-Dock med OpenGL (maskinvareakselerasjon)
Comment[nl]=Cairo-Dock met OpenGL (hardwareversnelling)
Comment[oc]=Cairo-Dock amb OpenGL (acceleracion materiala)
Comment[pt]=Cairo-Dock com OpenGL (aceleração por hardware)
Comment[pt_BR]=Cairo-Dock com OpenGL (aceleração de hardware)
Comment[ru]=Cairo-Dock с OpenGL (аппаратное ускорение)
Comment[sv]=Cairo-Dock med OpenGL (hårdvaruacceleration)
Comment[tr]=OpenGL etkin Cairo-Dock (donanım hızlandırması)
Comment[uk]=Cairo-Dock з OpenGL (hardware acceleration)
Comment[zh_CN]=使用了 OpenGL(硬件加速) 的 Cario-Dock
Comment[zh_TW]=使用 OpenGL (硬體加速) 之 Cairo-Dock
Name=GLX-Dock (Cairo-Dock with OpenGL)
Name[be]=GLX-Dock (панэль Cairo з OpenGL)
Name[ca]=GLX-Dock (Cairo-Dock amb OpenGL)
Name[cs]=GLX-Dock (Cairo-Dock s OpenGL)
Name[de]=GLX-Dock (Cairo-Dock mit OpenGL)
Name[el]=GLX-Dock (Cairo-Dock με OpenGL)
Name[es]=GLX-Dock (Cairo-Dock con OpenGL)
Name[fi]=GLX-Dock (OpenGL-grafiikoita käyttävä Cairo-Dock)
Name[fr]=GLX-Dock (Cairo-Dock avec OpenGL)
Name[hu]=GLX-Dock (Cairo-Dock OpenGL-lel)
Name[it]=GLX-Dock (Cairo-Dock con OpenGL)
Name[ja]=GLX-Dock (OpenGL版 Cairo-Dock)
Name[nb]=GLX-Dock (Cairo-Dock med OpenGL)
Name[nl]=GLX-Dock (Cairo-Dock met OpenGL)
Name[oc]=GLX-Dock (Cairo-Dock amb OpenGL)
Name[pt]=GLX-Dock (Cairo-Dock em OpenGL)
Name[pt_BR]=GLX-Dock (Cairo-Dock com OpenGL)
Name[ru]=GLX-Dock (панель Cairo с OpenGL)
Name[sv]=GLX-Dock (Cairo-Dock med OpenGL)
Name[tr]=GLX-Dock (OpenGL ile Cairo-Dock)
Name[uk]=GLX-Dock (Cairo-Dock з OpenGL)
Name[vi]=GLX-Dock (Thanh neo Cairo với OpenGL)
Name[zh_CN]=GLX-Dock (使用 OpenGL 的 Cairo-Dock)
Name[zh_TW]=GLX-Dock (使用 OpenGL 的 Cairo-Dock)
GenericName=Multi-purpose Dock and Desklets
GenericName[fr]=Dock et Desklets multi-usage
Categories=System;
File mode changed from 100755 to 100644
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
find_program (MSGFMT_EXECUTABLE msgfmt)
#on cree une nouvelle cible i18n liée à la cible all.
add_custom_target (i18n ALL COMMENT “Building i18n messages.”)
# on liste tous les .po
file (GLOB PO_FILES *.po)
# on parcours cette liste.
foreach (PO_INPUT ${PO_FILES})
get_filename_component (PO_INPUT_BASE ${PO_INPUT} NAME_WE) # NAME Without Extension.
if (NOT "${PO_INPUT_BASE}" STREQUAL "en_GB") # en_GB has been created only for LaunchPad translation tool
set (MO_OUTPUT ${PO_INPUT_BASE}.gmo) # le nom du fichier en sortie.
message (STATUS " Building ${MO_OUTPUT}...")
add_custom_command (TARGET i18n COMMAND ${MSGFMT_EXECUTABLE} -o ${CMAKE_CURRENT_BINARY_DIR}/${MO_OUTPUT} ${PO_INPUT}) # appel a msgfmt.
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${MO_OUTPUT} DESTINATION ${datadir}/locale/${PO_INPUT_BASE}/LC_MESSAGES RENAME ${GETTEXT_PACKAGE}.mo) # installation du fichier dans le bon repertoire.
endif()
endforeach ()
# Makefile for program source directory in GNU NLS utilities package.
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
#
# This file file be copied and used freely without restrictions. It can
# be used in projects which are not available under the GNU Public License
# but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available.
#
# - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
# instead of PACKAGE and to look for po2tbl in ./ not in intl/
#
# - Modified by jacob berkman <jacob@ximian.com> to install
# Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
#
# - Modified by Rodney Dawes <dobey@novell.com> for use with intltool
#
# We have the following line for use by intltoolize:
# INTLTOOL_MAKEFILE
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
PACKAGE = @PACKAGE@
VERSION = @VERSION@
SHELL = /bin/sh
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
datadir = @datadir@
datarootdir = @datarootdir@
libdir = @libdir@
DATADIRNAME = @DATADIRNAME@
itlocaledir = $(prefix)/$(DATADIRNAME)/locale
subdir = po
install_sh = @install_sh@
# Automake >= 1.8 provides @mkdir_p@.
# Until it can be supposed, use the safe fallback:
mkdir_p = $(install_sh) -d
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
GMSGFMT = @GMSGFMT@
MSGFMT = @MSGFMT@
XGETTEXT = @XGETTEXT@
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
ALL_LINGUAS = @ALL_LINGUAS@
PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi)
USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep ^$$lang$$ $(srcdir)/LINGUAS`" -o -n "`echo $$ALINGUAS|grep ' ?$$lang ?'`"; then printf "$$lang "; fi; done; fi)
USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
POFILES=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
DISTFILES = Makefile.in.in POTFILES.in $(POFILES)
EXTRA_DISTFILES = POTFILES.skip Makevars LINGUAS
POTFILES = \
# This comment gets stripped out
CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
.SUFFIXES:
.SUFFIXES: .po .pox .gmo .mo .msg .cat
.po.pox:
$(MAKE) $(GETTEXT_PACKAGE).pot
$(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
.po.mo:
$(MSGFMT) -o $@ $<
.po.gmo:
file=`echo $* | sed 's,.*/,,'`.gmo \
&& rm -f $$file && $(GMSGFMT) -o $$file $<
.po.cat:
sed -f ../intl/po2msg.sed < $< > $*.msg \
&& rm -f $@ && gencat $@ $*.msg
all: all-@USE_NLS@
all-yes: $(CATALOGS)
all-no:
$(GETTEXT_PACKAGE).pot: $(POTFILES)
$(GENPOT)
install: install-data
install-data: install-data-@USE_NLS@
install-data-no: all
install-data-yes: all
$(mkdir_p) $(DESTDIR)$(itlocaledir)
linguas="$(USE_LINGUAS)"; \
for lang in $$linguas; do \
dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
$(mkdir_p) $$dir; \
if test -r $$lang.gmo; then \
$(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
else \
$(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
echo "installing $(srcdir)/$$lang.gmo as" \
"$$dir/$(GETTEXT_PACKAGE).mo"; \
fi; \
if test -r $$lang.gmo.m; then \
$(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
else \
if test -r $(srcdir)/$$lang.gmo.m ; then \
$(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
$$dir/$(GETTEXT_PACKAGE).mo.m; \
echo "installing $(srcdir)/$$lang.gmo.m as" \
"$$dir/$(GETTEXT_PACKAGE).mo.m"; \
else \
true; \
fi; \
fi; \
done
# Empty stubs to satisfy archaic automake needs
dvi info tags TAGS ID:
# Define this as empty until I found a useful application.
installcheck:
uninstall:
linguas="$(USE_LINGUAS)"; \
for lang in $$linguas; do \
rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
done
check: all $(GETTEXT_PACKAGE).pot
rm -f missing notexist
srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
if [ -r missing -o -r notexist ]; then \
exit 1; \
fi
mostlyclean:
rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
rm -f .intltool-merge-cache
clean: mostlyclean
distclean: clean
rm -f Makefile Makefile.in POTFILES stamp-it
rm -f *.mo *.msg *.cat *.cat.m *.gmo
maintainer-clean: distclean
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
rm -f Makefile.in.in
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
dist distdir: $(DISTFILES)
dists="$(DISTFILES)"; \
extra_dists="$(EXTRA_DISTFILES)"; \
for file in $$extra_dists; do \
test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
done; \
for file in $$dists; do \
test -f $$file || file="$(srcdir)/$$file"; \
ln $$file $(distdir) 2> /dev/null \
|| cp -p $$file $(distdir); \
done
update-po: Makefile
$(MAKE) $(GETTEXT_PACKAGE).pot
tmpdir=`pwd`; \
linguas="$(USE_LINGUAS)"; \
for lang in $$linguas; do \
echo "$$lang:"; \
result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
if $$result; then \
if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
rm -f $$tmpdir/$$lang.new.po; \
else \
if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
:; \
else \
echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
rm -f $$tmpdir/$$lang.new.po; \
exit 1; \
fi; \
fi; \
else \
echo "msgmerge for $$lang.gmo failed!"; \
rm -f $$tmpdir/$$lang.new.po; \
fi; \
done
Makefile POTFILES: stamp-it
@if test ! -f $@; then \
rm -f stamp-it; \
$(MAKE) stamp-it; \
fi
stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
$(SHELL) ./config.status \
&& touch $(subdir)/stamp-it
# Tell versions [3.59,3.63) of GNU make not to export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
# Makefile variables for PO directory in any package using GNU gettext.
# Usually the message domain is the same as the package name.
DOMAIN = cid
# These two variables depend on the location of this directory.
subdir = .
top_builddir = ..
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --no-location
# This is the copyright holder that gets inserted into the header of the
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
# package. (Note that the msgstr strings, extracted from the package's
# sources, belong to the copyright holder of the package.) Translators are
# expected to transfer the copyright for their translations to this person
# or entity, or to disclaim their copyright. The empty string stands for
# the public domain; in this case the translators are expected to disclaim
# their copyright.
COPYRIGHT_HOLDER = cid.freezee.org
# This is the email address or URL to which the translators shall report
# bugs in the untranslated strings:
# - Strings which are not entire sentences, see the maintainer guidelines
# in the GNU gettext documentation, section 'Preparing Strings'.
# - Strings which use unclear terms or require additional context to be
# understood.