From 65e978a89fb32ff8be0b5d9ce4bc6e2a8a2b0e06 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 15 Feb 2007 18:42:24 +0100 Subject: [PATCH] Makefile.in: only build and install man pages for supported binaries This makes it possible again to install from the git repo even if not all binaries can be build, e.g. Mac OS which always lacks para_fade (reverts a858de7cf9437cf9a3569eb4bc297c5b0e768994). Also, don't refuse to install and don't complain if $VARDIR (/var/paraslash) can not be created, as this is non-fatal. --- Makefile.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 5afade9f..407642aa 100644 --- a/Makefile.in +++ b/Makefile.in @@ -43,8 +43,9 @@ CPPFLAGS += -Wshadow BINARIES = para_server para_client para_gui para_audioc para_recv \ para_filter para_write @extra_binaries@ -man_binaries := para_server para_client para_gui para_audioc para_recv \ +all_man_binaries := para_server para_client para_gui para_audioc para_recv \ para_filter para_write para_fade para_sdl_gui para_audiod +man_binaries := $(filter-out para_dbadm para_slider para_krell.so, $(BINARIES)) man_pages := $(patsubst %, man/man1/%.1, $(man_binaries)) man_pages_html := $(patsubst %, man/html/%.html, $(man_binaries)) FONTS := $(wildcard fonts/*.png) @@ -264,11 +265,12 @@ maintainer-clean: distclean install: all - mkdir -p $(BINDIR) $(FONTDIR) $(PICDIR) $(MANDIR) $(VARDIR) + mkdir -p $(BINDIR) $(FONTDIR) $(PICDIR) $(MANDIR) $(install_sh) -s -m 755 $(BINARIES) $(BINDIR) $(install_sh) -m 644 $(FONTS) $(FONTDIR) $(install_sh) -m 644 $(PICS) $(PICDIR) $(install_sh) -m 644 $(man_pages) $(MANDIR) + mkdir -p $(VARDIR) >/dev/null 2>&1 || true # not fatal, so don't complain @PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.bz2: $(tarball_add) $(man_pages) rm -rf $(tarball_pfx).tar.bz2 $(tarball_pfx) -- 2.39.5