summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-05 22:58:17 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-05 22:58:17 (EDT)
commitf585bea3c1291030ddd9656877b782deb6e966f9 (patch)
tree4fd59cacdf08cffa92676a951d600c49f7b34ddc /Makefile.in
parent56fd18c47f4e6f3baad320b9f293f6f52d6ce1e4 (diff)
Make man/ non-recursive.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in44
1 files changed, 32 insertions, 12 deletions
diff --git a/Makefile.in b/Makefile.in
index aa7eb45..eafdf97 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -52,9 +52,11 @@ MACROS = \
include $(srcdir)/src/local.mk
include $(srcdir)/lib/local.mk
+include $(srcdir)/man/local.mk
bin = $(src_bin)
pkglib = $(lib_pkglib)
+man1 = $(man_man1)
distdir = $(package_name)-$(package_version)
distfiles = \
@@ -68,20 +70,18 @@ distfiles = \
TODO \
$(src_distfiles)
-all: all-exec
+all: all-exec all-data
@printf 'Making locales...\n'
@cd locale && $(MAKE) $(MACROS) all
- @printf 'Making manual pages...\n'
- @cd man && $(MAKE) $(MACROS) all
all-exec: all-bin all-pkglib
all-bin: $(bin)
all-pkglib: $(pkglib)
+all-data: all-man1
+all-man1: $(man1)
-clean: clean-exec
+clean: clean-exec clean-data
@printf 'Cleaning locales...\n'
@cd locale && $(MAKE) $(MACROS) clean
- @printf 'Cleaning manual pages...\n'
- @cd man && $(MAKE) $(MACROS) clean
clean-exec: clean-bin clean-pkglib
clean-bin:
@for f in $(bin); do \
@@ -93,12 +93,16 @@ clean-pkglib:
printf ' RM %s\n' "$${f}"; \
rm -f "$${f}"; \
done
+clean-data: clean-man1
+clean-man1:
+ @for f in $(man1); do \
+ printf ' RM %s\n' "$${f}"; \
+ rm -f "$${f}"; \
+ done
-install: all install-exec
+install: all install-exec install-data
@printf 'Installing locales...\n'
@cd locale && $(MAKE) $(MACROS) install
- @printf 'Installing manual pages...\n'
- @cd man && $(MAKE) $(MACROS) install
install-exec: install-bin install-pkglib
install-bin:
@mkdir -p '$(DESTDIR)/$(bindir)'
@@ -120,12 +124,21 @@ install-pkglib:
cp "$${f}" "$(DESTDIR)/$(pkglibdir)/$${ff}"; \
chmod 644 "$(DESTDIR)/$(pkglibdir)/$${ff}"; \
done
+install-data: install-man1
+install-man1:
+ @mkdir -p '$(DESTDIR)/$(man1dir)'
+ @for f in $(man1); do \
+ printf ' INSTALL %s\n' "$${f}"; \
+ ff="$$(printf '%s' "$${f}" | sed 's|^[^/]*/||')"; \
+ [ "x$${ff%/?*}" != "x$${ff}" ] && \
+ mkdir -p "$(DESTDIR)/$(man1dir)/$${ff%/?*}"; \
+ cp "$${f}" "$(DESTDIR)/$(man1dir)/$${ff}"; \
+ chmod 644 "$(DESTDIR)/$(man1dir)/$${ff}"; \
+ done
-uninstall: uninstall-exec
+uninstall: uninstall-exec uninstall-data
@printf 'Uninstalling locales...\n'
@cd locale && $(MAKE) $(MACROS) uninstall
- @printf 'Uninstalling manual pages...\n'
- @cd man && $(MAKE) $(MACROS) uninstall
uninstall-exec: uninstall-bin uninstall-pkglib
uninstall-bin:
@for f in $(bin); do \
@@ -139,6 +152,13 @@ uninstall-pkglib:
ff="$$(printf '%s' "$${f}" | sed 's|^[^/]*/||')"; \
rm -f "$(DESTDIR)/$(pkglibdir)/$${ff}"; \
done
+uninstall-data: uninstall-man1
+uninstall-man1:
+ @for f in $(man1); do \
+ printf ' RM %s\n' "$${f}"; \
+ ff="$$(printf '%s' "$${f}" | sed 's|^[^/]*/||')"; \
+ rm -f "$(DESTDIR)/$(man1dir)/$${ff}"; \
+ done
$(distdir):
@mkdir -p '$(distdir)'