# Process this file with automake to produce an input makefile.
#
# Copyright (C) 2013, 2014 Patrick "P. J." McDermott
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; 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, see .
include $(top_srcdir)/src/local.mk
include $(top_srcdir)/lib/local.mk
include $(top_srcdir)/lib/buildsystem/local.mk
include $(top_srcdir)/man/local.mk
include $(top_srcdir)/locale/local.mk
include $(top_srcdir)/archtab/local.mk
include $(top_srcdir)/tests/local.mk
MANUAL = Distribution Build System
helper_sources = opkhelper.sh
bin_SCRIPTS = $(bin_sources:.sh=)
pkgdata_SCRIPTS = $(pkgdata_sources:.sh=.sm)
pkgdatabuildsystem_SCRIPTS = $(pkgdatabuildsystem_sources:.sh=.sm)
man1_MANS = $(man1_sources:.1in=.1)
locale_MESSAGES = $(locale_sources:.sh=.ms)
helper_SCRIPTS = $(helper_sources:.sh=)
CLEANFILES = \
$(bin_SCRIPTS) \
$(pkgdata_SCRIPTS) \
$(pkgdatabuildsystem_SCRIPTS) \
$(man1_MANS) \
$(locale_MESSAGES) \
$(helper_SCRIPTS)
pkgdatabuildsystemdir = $(pkgdatadir)/buildsystem
archtabdir = $(pkgdatadir)/archtab
EXTRA_DIST = \
COPYING.2 \
COPYING.3 \
autogen.sh \
$(bin_sources) \
$(pkgdata_sources) \
$(pkgdatabuildsystem_sources) \
$(man1_sources) \
$(locale_sources) \
$(archtab_sources) \
$(tests) \
tests/testlib.sh \
$(helper_sources) \
scripts/changelog2news.sh
SUFFIXES = .sh .sm .1in .1 .ms
textdomain = $$(printf '%s\n' '$(PACKAGE)' | sed -e 's|-|_|g')
do_subst = sed \
-e 's|[@]PACKAGE[@]|$(PACKAGE)|g' \
-e 's|[@]PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' \
-e 's|[@]PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
-e 's|[@]MANUAL[@]|$(MANUAL)|g' \
-e 's|[@]SH[@]|$(SH)|g' \
-e 's|[@]READELF[@]|$(READELF)|g' \
-e 's|[@]OPKG[@]|$(OPKG)|g' \
-e 's|[@]multiarch_libdir[@]|$(multiarch_libdir)|g' \
-e 's|[@]bindir[@]|$(bindir)|g' \
-e 's|[@]pkgdatadir[@]|$(pkgdatadir)|g' \
-e 's|[@]localedir[@]|$(localedir)|g' \
-e 's|[@]archtabdir[@]|$(archtabdir)|g'
all-local: $(locale_MESSAGES) $(archtab_sources)
wikiman_script = \
H; \
$${ \
g; \
s|^.*
]*>\([^<]*\)
|[[!meta title="\1"]]|; \
s|
\n*