--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@ $<