autospec/plugins/Makefile
Davide Madrisan 288d828aaa translation framework: xgettext is buggy: use 'bash --dump-po-strings' instead and rework all the code
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-25 15:54:34 +01:00

57 lines
1.7 KiB
Makefile

# Makefile for autospec
# Copyright (C) 2008,2011 by Davide Madrisan <davide.madrisan@gmail.com>
# This program is free software; you can redistribute it and/or modify it under
# the terms of version 2 of the GNU General Public License as published by the
# Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY, to the extent permitted by law; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
srcdir = ..
include $(srcdir)/Makefile.env
pck_plugins := config-getvar pck-extract pck-update spec-create
pck_plugins_infiles := $(wildcard *.in)
all:
check: $(pck_plugins)
@for f in $(pck_plugins); do\
echo -n "checking $$f... ";\
bash -n $$f \
&& echo "[PASSED]" || { echo "[FAILED]"; exit 1; };\
done
pot-files: $(pck_plugins)
@for f in $(pck_plugins); do\
echo -n "Generating po template '$$f.pot'...";\
/bin/bash --dump-po-strings $$f \
> $(srcdir)/po/$$f.pot \
&& echo "[DONE]" || { echo "[ERROR]"; exit 1; };\
done
install: $(pck_plugins)
@$(INSTALL_DIR) $(DESTDIR)$(plugindir)
for f in $(pck_plugins); do\
$(INSTALL_SCRIPT) $${f} $(DESTDIR)$(plugindir)/$${f};\
done
uninstall:
for f in $(pck_plugins); do\
rm -f $(DESTDIR)$(plugindir)/$${f};\
done
clean:
rm -f $(patsubst %.in,%,$(pck_plugins_infiles))
@for f in $(pck_plugins); do\
rm -f $(srcdir)/po/$$f.pot;\
done