aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-03 14:31:37 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-03 19:58:56 (GMT)
commit8d49bf1d5a4821c4327c88d356c469f6595fd672 (patch)
tree62acd3f26606951fd12bbeae1169ece4d10269b4
parenteff089fe244a9ba47dce6ef5069c5810703cf794 (diff)
Add logic to install the camorama's man page
Add the needed bits to install camorama.1 man page. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--Makefile.am3
-rw-r--r--Makefile.in77
2 files changed, 66 insertions, 14 deletions
diff --git a/Makefile.am b/Makefile.am
index ec4a925..d1496a1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,6 +2,8 @@ desktopdir = $(datadir)/applications
desktop_in_files = camorama.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+man_MANS = camorama.1
+
appdatadir = $(datadir)/metainfo
appdata_in_files = camorama.appdata.xml.in
nodist_appdata_DATA = $(appdata_in_files:.xml.in=.xml)
@@ -13,7 +15,6 @@ EXTRA_DIST = \
camorama.1 \
camorama.desktop.in \
camorama.appdata.xml.in \
- camorama.1 \
data/pixmaps/camorama-webcam-16.png \
data/pixmaps/camorama-webcam-24.png
diff --git a/Makefile.in b/Makefile.in
index 7b712d1..4d4f47e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -155,7 +155,11 @@ am__uninstall_files_from_dir = { \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
-am__installdirs = "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(appdatadir)"
+man1dir = $(mandir)/man1
+am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(desktopdir)" \
+ "$(DESTDIR)$(appdatadir)"
+NROFF = nroff
+MANS = $(man_MANS)
DATA = $(desktop_DATA) $(nodist_appdata_DATA)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
@@ -359,6 +363,7 @@ top_srcdir = @top_srcdir@
desktopdir = $(datadir)/applications
desktop_in_files = camorama.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+man_MANS = camorama.1
appdatadir = $(datadir)/metainfo
appdata_in_files = camorama.appdata.xml.in
nodist_appdata_DATA = $(appdata_in_files:.xml.in=.xml)
@@ -368,7 +373,6 @@ EXTRA_DIST = \
camorama.1 \
camorama.desktop.in \
camorama.appdata.xml.in \
- camorama.1 \
data/pixmaps/camorama-webcam-16.png \
data/pixmaps/camorama-webcam-24.png
@@ -430,6 +434,49 @@ $(srcdir)/config.h.in: $(am__configure_deps)
distclean-hdr:
-rm -f config.h stamp-h1
+install-man1: $(man_MANS)
+ @$(NORMAL_INSTALL)
+ @list1=''; \
+ list2='$(man_MANS)'; \
+ test -n "$(man1dir)" \
+ && test -n "`echo $$list1$$list2`" \
+ || exit 0; \
+ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
+ { for i in $$list1; do echo "$$i"; done; \
+ if test -n "$$list2"; then \
+ for i in $$list2; do echo "$$i"; done \
+ | sed -n '/\.1[a-z]*$$/p'; \
+ fi; \
+ } | while read p; do \
+ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; echo "$$p"; \
+ done | \
+ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
+ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
+ sed 'N;N;s,\n, ,g' | { \
+ list=; while read file base inst; do \
+ if test "$$base" = "$$inst"; then list="$$list $$file"; else \
+ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
+ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
+ fi; \
+ done; \
+ for i in $$list; do echo "$$i"; done | $(am__base_list) | \
+ while read files; do \
+ test -z "$$files" || { \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
+ done; }
+
+uninstall-man1:
+ @$(NORMAL_UNINSTALL)
+ @list=''; test -n "$(man1dir)" || exit 0; \
+ files=`{ for i in $$list; do echo "$$i"; done; \
+ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
+ sed -n '/\.1[a-z]*$$/p'; \
+ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
+ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
+ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
install-desktopDATA: $(desktop_DATA)
@$(NORMAL_INSTALL)
@list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \
@@ -772,10 +819,10 @@ distcleancheck: distclean
exit 1; } >&2
check-am: all-am
check: check-recursive
-all-am: Makefile $(DATA) config.h
+all-am: Makefile $(MANS) $(DATA) config.h
installdirs: installdirs-recursive
installdirs-am:
- for dir in "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(appdatadir)"; do \
+ for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(appdatadir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-recursive
@@ -830,7 +877,7 @@ info: info-recursive
info-am:
-install-data-am: install-data-local install-desktopDATA \
+install-data-am: install-data-local install-desktopDATA install-man \
install-nodist_appdataDATA
install-dvi: install-dvi-recursive
@@ -847,7 +894,7 @@ install-info: install-info-recursive
install-info-am:
-install-man:
+install-man: install-man1
install-pdf: install-pdf-recursive
@@ -877,7 +924,10 @@ ps: ps-recursive
ps-am:
-uninstall-am: uninstall-desktopDATA uninstall-nodist_appdataDATA
+uninstall-am: uninstall-desktopDATA uninstall-man \
+ uninstall-nodist_appdataDATA
+
+uninstall-man: uninstall-man1
.MAKE: $(am__recursive_targets) all install-am install-strip
@@ -891,12 +941,13 @@ uninstall-am: uninstall-desktopDATA uninstall-nodist_appdataDATA
install-data install-data-am install-data-local \
install-desktopDATA install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-nodist_appdataDATA \
- install-pdf install-pdf-am install-ps install-ps-am \
- install-strip installcheck installcheck-am installdirs \
- installdirs-am maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
- tags-am uninstall uninstall-am uninstall-desktopDATA \
+ install-info-am install-man install-man1 \
+ install-nodist_appdataDATA install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs installdirs-am maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
+ pdf-am ps ps-am tags tags-am uninstall uninstall-am \
+ uninstall-desktopDATA uninstall-man uninstall-man1 \
uninstall-nodist_appdataDATA
.PRECIOUS: Makefile

Privacy Policy