From c82ef9764fc69d75f2603b5051c4a4c6cd9779bb Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 15 Jun 2013 13:35:49 -0400 Subject: Make src/ non-recursive. --- 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' diff --git a/src/local.mk b/src/local.mk new file mode 100644 index 0000000..06eeb4b --- /dev/null +++ b/src/local.mk @@ -0,0 +1,29 @@ +# opkbuild +# src/local.mk +# +# 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 +# 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 . + +bin_srcs = \ + src/opkbuild.sh \ + src/ob-checkbuilddeps.sh \ + src/ob-buildenv.sh \ + src/ob-unpacksource.sh \ + src/ob-applypatches.sh \ + src/ob-installplatconf.sh \ + src/ob-installdocs.sh \ + src/ob-gencontrol.sh \ + src/ob-buildopk.sh \ +# src/ob-genchanges.sh -- cgit v0.9.1