summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in30
1 files changed, 23 insertions, 7 deletions
diff --git a/Makefile.in b/Makefile.in
index 67daea9..2612155 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -19,6 +19,7 @@
package_name = @package_name@
package_version = @package_version@
+package_description = @package_description@
srcdir = @srcdir@
prefix = @prefix@
@@ -28,6 +29,8 @@ pkglibdir = @pkglibdir@
libopkbuild = @libopkbuild@
datadir = @datadir@
mandir = @mandir@
+man1dir = @man1dir@
+man3dir = @man3dir@
sysconfdir = @sysconfdir@
metadata = @metadata@
opkhelper_3_0 = @opkhelper_3_0@
@@ -55,12 +58,15 @@ include $(srcdir)/src/local.mk
include $(srcdir)/lib/local.mk
include $(srcdir)/lib/package/local.mk
include $(srcdir)/lib/metadata/local.mk
+include $(srcdir)/man/local.mk
include $(srcdir)/locale/local.mk
bin = $(bin_srcs:.sh=)
pkglib = $(pkglib_srcs:.sh=.sm)
pkglibpackage = $(pkglibpackage_srcs:.sh=.sm)
pkglibmetadata = $(pkglibmetadata_srcs:.sh=.sm)
+man1 = $(man1_srcs:.1in=.1)
+man3 = $(man3_srcs:.3in=.3)
locale = $(locale_srcs:.sh=.ms)
distdir = $(package_name)-$(package_version)
@@ -77,16 +83,20 @@ distfiles = \
lib/local.mk \
lib/package/local.mk \
lib/metadata/local.mk \
+ man/local.mk \
locale/local.mk \
$(bin_srcs) \
$(pkglib_srcs) \
$(pkglibpackage_srcs) \
$(pkglibmetadata_srcs) \
+ $(man1_srcs) \
+ $(man3_srcs) \
$(locale_srcs)
script = \
s&@@PACKAGE_NAME@@&$(package_name)&;\
s&@@PACKAGE_VERSION@@&$(package_version)&;\
+ s&@@PACKAGE_DESCRIPTION@@&$(package_description)&;\
s&@@BINDIR@@&$(bindir)&;\
s&@@PKGLIBDIR@@&$(pkglibdir)&;\
s&@@LIBOPKBUILD@@&$(libopkbuild)&;\
@@ -98,13 +108,20 @@ script = \
s&@@OPKHELPER_3_0@@&$(opkhelper_3_0)&;
.SUFFIXES:
-.SUFFIXES: .sh .sm .ms
-
+.SUFFIXES: .sh .sm .1in .1 .3in .3 .ms
+
+# XXX: Support for lists of multiple targets in inference rules doesn't appear
+# to be required by POSIX.1-2008 [1], but it exists in GNU Make and NetBSD
+# pmake. Expand this into separate rules if it is a problem with certain make
+# implementations.
+# [1]: Compare the inference and target rule definitions after fragments
+# <#tag_20_76_13_06> and <#tag_20_76_13_04> in
+# <http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html>.
.sh:
@printf ' SED %s\n' '$@'
@sed '$(script)' '$(srcdir)/$?' >'$@'
@chmod 755 '$@'
-.sh.sm:
+.sh.sm .1in.1 .3in.3:
@printf ' SED %s\n' '$@'
@sed '$(script)' '$(srcdir)/$?' >'$@'
@chmod 644 '$@'
@@ -120,10 +137,9 @@ all-bin: $(bin)
all-pkglib: $(pkglib)
all-pkglibpackage: $(pkglibpackage)
all-pkglibmetadata: $(pkglibmetadata)
-all-data: all-man all-locale
-all-man:
- @printf 'Making manual pages...\n'
- @cd man && $(MAKE) $(MACROS) all
+all-data: all-man1 all-man3 all-locale
+all-man1: $(man1)
+all-man3: $(man3)
all-locale: $(locale)
clean: