X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile.in;h=6d14029c48b6a835832aa797ae78566269ad1c87;hb=fbe4b0468ed9dacd7f4c58be7559c50bf4661d87;hp=cf8b9f71f0684d4f0184a03ff3b2b519d6e9b44f;hpb=d9e05a6585d795e44847608a8a6ee424a7604b74;p=paraslash.git diff --git a/Makefile.in b/Makefile.in index cf8b9f71..6d14029c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -7,7 +7,8 @@ PKGDATADIR := @datarootdir@/@PACKAGE_NAME@ MANDIR := @datarootdir@/man/man1 PACKAGE_VERSION := @PACKAGE_VERSION@ PACKAGE_STRING := @PACKAGE_STRING@ -install_sh := @install_sh@ +INSTALL := @install@ +STRIP := $(CROSS_COMPILE)strip executables := $(addprefix para_, @executables@) ggo_descriptions_declared := @ggo_descriptions_declared@ @@ -35,6 +36,7 @@ dep_dir := $(build_dir)/deps man_dir := $(build_dir)/man/man1 cmdline_dir := $(build_dir)/cmdline m4depdir := $(build_dir)/m4deps +help2man_dir := $(build_dir)/help2man DEBUG_CPPFLAGS += -g -Wunused -Wundef -W DEBUG_CPPFLAGS += -Wredundant-decls @@ -103,7 +105,8 @@ dep: $(deps) man: $(man_pages) tarball: $(tarball) -$(object_dir) $(man_dir) $(ggo_dir) $(cmdline_dir) $(dep_dir) $(m4depdir): +$(object_dir) $(man_dir) $(ggo_dir) $(cmdline_dir) $(dep_dir) $(m4depdir) \ + $(help2man_dir): $(Q) $(MKDIR_P) $@ -include $(m4_ggo_dir)/makefile @@ -133,22 +136,22 @@ afs_command_list.h afs_command_list.man afs_completion.h: afs.c aft.c attribute. audiod_command_list.h audiod_command_list.man audiod_completion.h: audiod_command.c server_command_lists_man = server_command_list.man afs_command_list.man -$(man_dir)/para_server.1: para_server $(server_command_lists_man) | $(man_dir) +$(man_dir)/para_server.1: $(help2man_dir)/para_server $(server_command_lists_man) | $(man_dir) @[ -z "$(Q)" ] || echo 'MAN $<' - $(Q) opts="-h --detailed-help -N `for i in $(server_command_lists_man); do printf "%s\n" "-i $$i"; done`"; \ - $(HELP2MAN) $$opts ./para_server > $@ + $(Q) opts="`for i in $(server_command_lists_man); do printf "%s\n" "-i $$i"; done`"; \ + $(HELP2MAN) $$opts ./$< > $@ -$(man_dir)/para_audiod.1: para_audiod audiod_command_list.man | $(man_dir) +$(man_dir)/para_audiod.1: $(help2man_dir)/para_audiod audiod_command_list.man | $(man_dir) @[ -z "$(Q)" ] || echo 'MAN $<' - $(Q) $(HELP2MAN) -h --detailed-help -N -i audiod_command_list.man ./para_audiod > $@ + $(Q) $(HELP2MAN) -N -i audiod_command_list.man ./$< > $@ -$(man_dir)/para_play.1: para_play play_command_list.man | $(man_dir) +$(man_dir)/para_play.1: $(help2man_dir)/para_play play_command_list.man | $(man_dir) @[ -z "$(Q)" ] || echo 'MAN $<' - $(Q) $(HELP2MAN) -h --detailed-help -N -i play_command_list.man ./para_play > $@ + $(Q) $(HELP2MAN) -N -i play_command_list.man ./$< > $@ -$(man_dir)/%.1: % | $(man_dir) +$(man_dir)/%.1: $(help2man_dir)/% | $(man_dir) @[ -z "$(Q)" ] || echo 'MAN $<' - $(Q) $(HELP2MAN) -h --detailed-help -N ./$< > $@ + $(Q) $(HELP2MAN) -N ./$< > $@ $(object_dir)/crypt.o: crypt.c | $(object_dir) @[ -z "$(Q)" ] || echo 'CC $<' @@ -314,8 +317,8 @@ maintainer-clean: distclean install: all man $(MKDIR_P) $(BINDIR) $(MANDIR) - $(install_sh) -s -m 755 $(executables) $(BINDIR) - $(install_sh) -m 644 $(man_pages) $(MANDIR) + $(INSTALL) -s --strip-program $(STRIP) -m 755 $(executables) $(BINDIR) + $(INSTALL) -m 644 $(man_pages) $(MANDIR) $(MKDIR_P) $(VARDIR) >/dev/null 2>&1 || true # not fatal, so don't complain $(tarball): @@ -329,9 +332,4 @@ $(tarball): bzip2 -9 $(tarball_pfx).tar ls -l $(tarball_pfx).tar.bz2 rm -rf $(tarball_pfx) -%.ps: %.sk - sk2ps $< > $@ -%.pdf: %.ps - ps2pdf - - < $< > $@ - include $(test_dir)/makefile.test