X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile.in;h=480c78a8f040447e36227550ad9ef44aaf606749;hb=c87c792127bf346a1ffa33c293be062b9ab12bc2;hp=bb0488082d4d3a0d4b328aa7fb0d38c22f6ce8c3;hpb=e090f7343634d5f68acf961367ee256d0bf831d7;p=paraslash.git diff --git a/Makefile.in b/Makefile.in index bb048808..480c78a8 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,4 +1,4 @@ -COPYRIGHT = Copyright (c) 1997-2006 by Andre Noll +COPYRIGHT = Copyright (c) 1997-2007 by Andre Noll DISCLAIMER = This is free software with ABSOLUTELY NO WARRANTY. See COPYING for details. prefix = @prefix@ @@ -49,6 +49,9 @@ CPPFLAGS += -Wunused-macros CPPFLAGS += -Wshadow BINARIES = para_server para_client para_gui para_audioc para_recv para_filter para_write @extra_binaries@ +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) PICS := $(wildcard pics/paraslash/*.jpg) @@ -85,11 +88,11 @@ tarball_delete = web versions pics/screenshots pics/web .changelog_before_cvs \ tarball_delete := $(patsubst %,$(tarball_pfx)/%,$(tarball_delete)) tarball_add := $(gengetopts_c) $(gengetopts_h) $(autocrap) -.PHONY: clean distclean maintainer-clean install html www tags ChangeLog doxygen gruta +.PHONY: clean distclean maintainer-clean install html www tags doxygen gruta man all: $(BINARIES) www: $(gen_html) $(gruta_html) $(web_pics) $(web_misc) $(shots) tags doxygen doc gruta: $(gen_html) $(gruta_html) - +man: $(man_pages) $(man_pages_html) sdl_gui_objs = sdl_gui.cmdline.o SFont.o sdl_gui.o gui_common.o exec.o \ close_on_fork.o string.o stat.o fd.o @@ -148,30 +151,29 @@ grab_client.cmdline.h grab_client.cmdline.c: grab_client.ggo --set-package="para_$(subst .cmdline,,$(*F))" \ --set-version="$V" < $< -server_command_list.c: server.cmd server_command_list.h - ./command_util.sh array < $< >>$@ -server_command_list.h: server.cmd - ./command_util.sh proto < $< >> $@ +%_command_list.c %_command_list.h: %.cmd + ./command_util.sh c < $< >$@ + ./command_util.sh h < $< >$(@:%.c=%.h) + +%_command_list.man: %.cmd + ./command_util.sh man < $< > $@ + +server_command_lists = server_command_list.man random_selector_command_list.man \ + playlist_selector_command_list.man mysql_selector_command_list.man +man/man1/para_server.1: para_server $(server_command_lists) + opts="-N `for i in $(server_command_lists); do echo "-i $$i"; done`"; \ + help2man $$opts ./para_server > $@ -mysql_selector_command_list.c: mysql_selector.cmd mysql_selector_command_list.h - ./command_util.sh array < $< >>$@ -mysql_selector_command_list.h: mysql_selector.cmd - ./command_util.sh proto < $< >> $@ +man/man1/para_audiod.1: para_audiod audiod_command_list.man + help2man -N -i audiod_command_list.man ./para_audiod > $@ -random_selector_command_list.c: random_selector.cmd random_selector_command_list.h - ./command_util.sh array < $< >>$@ -random_selector_command_list.h: random_selector.cmd - ./command_util.sh proto < $< >> $@ +man/man1/%.1: % + help2man -N $< > $@ + +man/html/%.html: man/man1/%.1 + man2html $< > $@ -playlist_selector_command_list.c: playlist_selector.cmd playlist_selector_command_list.h - ./command_util.sh array < $< >>$@ -playlist_selector_command_list.h: playlist_selector.cmd - ./command_util.sh proto < $< >> $@ -audiod_command_list.c: audiod.cmd audiod_command_list.h - ./command_util.sh array < $< >>$@ -audiod_command_list.h: audiod.cmd - ./command_util.sh proto < $< >> $@ ortp_recv.o: ortp_recv.c $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) @ortp_cppflags@ $< @@ -250,8 +252,7 @@ para_krell.so: $(krell_objs) $(CC) -Wall -fPIC @GTK_CFLAGS@ krell.o -o $@ @GTK_LIBS@ -shared clean: - rm -f *.o $(BINARIES) *_command_list.* - + rm -f *.o $(BINARIES) distclean: clean rm -f Makefile autoscan.log config.status config.log && \ rm -rf web/sync/* autom4te.cache aclocal.m4 @@ -259,9 +260,11 @@ distclean: clean maintainer-clean: distclean rm -f $(gengetopts_c) $(gengetopts_h) *.tar.bz2 \ - $(grutatxt_html) ChangeLog* config.h configure \ + $(grutatxt_html) config.h configure \ config.h.in skencil/*.pdf skencil/*.ps rm -rf doc + rm -f *_command_list.* *.man man/man1/* man/html/* + install: all umask 022 && \ @@ -287,8 +290,6 @@ install: all rm -f $(tarball_pfx).tar ls -l $(tarball_pfx).tar.bz2 -ChangeLog: - para_util changelog > $@ web/%.in.html: % grutatxt -nb < $< > $@ tags: