summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in18
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