summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-15 13:35:49 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-15 13:35:49 (EDT)
commitc82ef9764fc69d75f2603b5051c4a4c6cd9779bb (patch)
tree114b86a4bef31c4e9ce5f1227cd4d44bc6370991 /Makefile.in
parente12e6d4282822a59ebfd9142b5715c8667966339 (diff)
Make src/ non-recursive.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in50
1 files changed, 42 insertions, 8 deletions
diff --git a/Makefile.in b/Makefile.in
index b7a53a2..f0e7278 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -2,7 +2,7 @@
# Makefile.in
# Input Makefile for configure.
#
-# Copyright (C) 2012 Patrick "P. J." McDermott
+# Copyright (C) 2012-2013 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
@@ -47,23 +47,57 @@ MACROS = \
'metadata=$(metadata)' \
'opkhelper_3_0=$(opkhelper_3_0)'
+include $(srcdir)/src/local.mk
+
+bin = $(bin_srcs:.sh=)
+
distdir = $(package_name)-$(package_version)
-distfiles = configure Makefile.in COPYING.2 COPYING.3 \
- README INSTALL ChangeLog TODO
+distfiles = \
+ configure \
+ Makefile.in \
+ COPYING.2 \
+ COPYING.3 \
+ README \
+ INSTALL \
+ ChangeLog \
+ TODO \
+ src/local.mk \
+ $(bin_srcs)
+
+script = \
+ s&@@PACKAGE_NAME@@&$(package_name)&;\
+ s&@@PACKAGE_VERSION@@&$(package_version)&;\
+ s&@@BINDIR@@&$(bindir)&;\
+ s&@@LIBOPKBUILD@@&$(libopkbuild)&;\
+ s&@@SH@@&$(sh)&;
.SUFFIXES:
+.SUFFIXES: .sh
+
+.sh:
+ @printf ' SED %s\n' '$@'
+ @sed '$(script)' '$(srcdir)/$?' >'$@'
+ @chmod 755 '$@'
-all:
- @printf 'Making executable files...\n'
- @cd src && $(MAKE) $(MACROS) all
+all: all-exec all-data
+all-exec: all-bin all-pkglib all-pkglibpackage all-pkglibmetadata
+all-bin: $(bin)
+all-pkglib:
@printf 'Making library files...\n'
@cd lib && $(MAKE) $(MACROS) all
+all-pkglibpackage:
+ @printf 'Making library files...\n'
@cd lib/package && $(MAKE) $(MACROS) all
+all-pkglibmetadata:
+ @printf 'Making library files...\n'
@cd lib/metadata && $(MAKE) $(MACROS) all
- @printf 'Making locales...\n'
- @cd locale && $(MAKE) $(MACROS) all
+all-data: all-man all-locale
+all-man:
@printf 'Making manual pages...\n'
@cd man && $(MAKE) $(MACROS) all
+all-locale:
+ @printf 'Making locales...\n'
+ @cd locale && $(MAKE) $(MACROS) all
clean:
@printf 'Cleaning executable files...\n'