diff options
author | P. J. McDermott <pjm@nac.net> | 2013-05-05 20:59:43 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-05-05 20:59:43 (EDT) |
commit | cfec2484ce61a951fbb34d00d343f435a8587a0e (patch) | |
tree | 184a9dd9d8552891eb8c2e397c859e23a5a2cfd2 /Makefile.in | |
parent | e7022914838b3a097e04edafcb4128dc502c0da1 (diff) |
Make lib/buildsystem/ non-recursive.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Makefile.in b/Makefile.in index 9e0d4bd..5d6073e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -66,7 +66,6 @@ distfiles = \ $(src_distfiles) all: all-exec - @cd lib/buildsystem && $(MAKE) $(MACROS) all @printf 'Making locales...\n' @cd locale && $(MAKE) $(MACROS) all @printf 'Making manual pages...\n' @@ -76,7 +75,6 @@ all-bin: $(bin) all-lib: $(lib) clean: clean-exec - @cd lib/buildsystem && $(MAKE) $(MACROS) clean @printf 'Cleaning locales...\n' @cd locale && $(MAKE) $(MACROS) clean @printf 'Cleaning manual pages...\n' @@ -94,8 +92,6 @@ clean-lib: done install: all install-exec - @printf 'Installing library files...\n' - @cd lib/buildsystem && $(MAKE) $(MACROS) install @printf 'Installing locales...\n' @cd locale && $(MAKE) $(MACROS) install @printf 'Installing manual pages...\n' @@ -105,7 +101,9 @@ install-bin: @mkdir -p '$(DESTDIR)/$(bindir)' @for f in $(bin); do \ printf ' INSTALL %s\n' "$${f}"; \ - ff="$$(basename "$${f}")"; \ + ff="$$(printf '%s' "$${f}" | sed 's|^[^/]*/||')"; \ + [ "x$${ff%/?*}" != "x$${ff}" ] && \ + mkdir -p "$(DESTDIR)/$(bindir)/$${ff%/?*}"; \ cp "$${f}" "$(DESTDIR)/$(bindir)/$${ff}"; \ chmod 755 "$(DESTDIR)/$(bindir)/$${ff}"; \ done @@ -113,14 +111,14 @@ install-lib: @mkdir -p '$(DESTDIR)/$(libdir)' @for f in $(lib); do \ printf ' INSTALL %s\n' "$${f}"; \ - ff="$$(basename "$${f}")"; \ + ff="$$(printf '%s' "$${f}" | sed 's|^[^/]*/||')"; \ + [ "x$${ff%/?*}" != "x$${ff}" ] && \ + mkdir -p "$(DESTDIR)/$(libdir)/$${ff%/?*}"; \ cp "$${f}" "$(DESTDIR)/$(libdir)/$${ff}"; \ chmod 644 "$(DESTDIR)/$(libdir)/$${ff}"; \ done uninstall: uninstall-exec - @printf 'Uninstalling library files...\n' - @cd lib/buildsystem && $(MAKE) $(MACROS) uninstall @printf 'Uninstalling locales...\n' @cd locale && $(MAKE) $(MACROS) uninstall @printf 'Uninstalling manual pages...\n' @@ -129,13 +127,13 @@ uninstall-exec: uninstall-bin uninstall-lib uninstall-bin: @for f in $(bin); do \ printf ' RM %s\n' "$${f}"; \ - ff="$$(basename "$${f}")"; \ + ff="$$(printf '%s' "$${f}" | sed 's|^[^/]*/||')"; \ rm -f "$(DESTDIR)/$(bindir)/$${ff}"; \ done uninstall-lib: @for f in $(lib); do \ printf ' RM %s\n' "$${f}"; \ - ff="$$(basename "$${f}")"; \ + ff="$$(printf '%s' "$${f}" | sed 's|^[^/]*/||')"; \ rm -f "$(DESTDIR)/$(libdir)/$${ff}"; \ done |