From 705cad2ebbb5a37a43acc43676570b093b5c3b6a Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 21 Jan 2007 21:17:28 +0100 Subject: [PATCH] switch to a single rule for all command lists --- Makefile.in | 27 +++------------------------ command_util.sh | 4 ++-- 2 files changed, 5 insertions(+), 26 deletions(-) diff --git a/Makefile.in b/Makefile.in index aef0c0c9..6ff6a016 100644 --- a/Makefile.in +++ b/Makefile.in @@ -148,30 +148,9 @@ 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 c_file < $< >>$@ -server_command_list.h: server.cmd - ./command_util.sh header < $< >> $@ - -mysql_selector_command_list.c: mysql_selector.cmd mysql_selector_command_list.h - ./command_util.sh c_file < $< >>$@ -mysql_selector_command_list.h: mysql_selector.cmd - ./command_util.sh header < $< >> $@ - -random_selector_command_list.c: random_selector.cmd random_selector_command_list.h - ./command_util.sh c_file < $< >>$@ -random_selector_command_list.h: random_selector.cmd - ./command_util.sh header < $< >> $@ - -playlist_selector_command_list.c: playlist_selector.cmd playlist_selector_command_list.h - ./command_util.sh c_file < $< >>$@ -playlist_selector_command_list.h: playlist_selector.cmd - ./command_util.sh header < $< >> $@ - -audiod_command_list.c: audiod.cmd audiod_command_list.h - ./command_util.sh c_file < $< >>$@ -audiod_command_list.h: audiod.cmd - ./command_util.sh header < $< >> $@ +%_command_list.c %_command_list.h: %.cmd + ./command_util.sh c < $< >$@ + ./command_util.sh h < $< >$(@:%.c=%.h) ortp_recv.o: ortp_recv.c $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) @ortp_cppflags@ $< diff --git a/command_util.sh b/command_util.sh index 25fc0884..43f4dba8 100755 --- a/command_util.sh +++ b/command_util.sh @@ -242,10 +242,10 @@ read_header arg="$1" shift case "$arg" in - "c_file") + "c") com_c_file ;; - "header") + "h") com_header ;; "man") -- 2.39.2