2011-04-26 21:39:44 +02:00
|
|
|
# Makefile for autospec
|
2012-05-19 14:16:01 +02:00
|
|
|
# Copyright (C) 2008,2010,2012 by Davide Madrisan <davide.madrisan@gmail.com>
|
2011-04-26 21:39:44 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2012-05-19 14:16:01 +02:00
|
|
|
pck_libs := libapse.lib libcfg.lib libmsgmng.lib libnetwork.lib libspec.lib \
|
2012-11-19 22:45:31 +01:00
|
|
|
libtest.lib
|
2011-04-26 21:39:44 +02:00
|
|
|
pck_libs_infiles := $(wildcard *.in)
|
2012-11-19 22:45:31 +01:00
|
|
|
pck_libs_all := $(pck_libs) README.API
|
2011-04-26 21:39:44 +02:00
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
check: $(pck_libs)
|
|
|
|
@for f in $(pck_libs); do\
|
|
|
|
echo -n "checking $$f... ";\
|
|
|
|
bash -n $$f \
|
|
|
|
&& echo "[PASSED]" || { echo "[FAILED]"; exit 1; };\
|
|
|
|
done
|
|
|
|
|
2012-11-19 22:45:31 +01:00
|
|
|
pot-files: $(pck_libs)
|
|
|
|
@for f in $(pck_libs); do\
|
|
|
|
echo -n "Generating po template '$$f.pot'...";\
|
2012-11-25 15:54:34 +01:00
|
|
|
/bin/bash --dump-po-strings $$f \
|
|
|
|
> $(srcdir)/po/$${f/.lib}.pot \
|
2012-11-19 22:45:31 +01:00
|
|
|
&& echo "[DONE]" || { echo "[ERROR]"; exit 1; };\
|
|
|
|
done
|
|
|
|
|
|
|
|
install: $(pck_libs_all)
|
2011-04-26 21:39:44 +02:00
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(libdir)
|
|
|
|
for f in $(pck_libs); do\
|
|
|
|
$(INSTALL_DATA) $${f} $(DESTDIR)$(libdir)/$${f};\
|
|
|
|
done
|
|
|
|
|
|
|
|
uninstall:
|
2012-11-19 22:45:31 +01:00
|
|
|
for f in $(pck_libs_all); do\
|
2011-04-26 21:39:44 +02:00
|
|
|
rm -f $(DESTDIR)$(libdir)/$${f};\
|
|
|
|
done
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(patsubst %.in,%,$(pck_libs_infiles))
|
2012-11-19 22:45:31 +01:00
|
|
|
@for f in $(pck_libs_all); do\
|
|
|
|
rm -f $(srcdir)/po/$$f.pot;\
|
|
|
|
done
|