From cd558858e6b619c47377223ecc9e79a08775c991 Mon Sep 17 00:00:00 2001 From: schmirl Date: Mon, 11 Feb 2008 16:13:46 +0000 Subject: [PATCH] Fixed default target (suggested by rofafor - #430) --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 8529750..cac5c01 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # # Makefile for a Video Disk Recorder plugin # -# $Id: Makefile,v 1.8 2007/04/16 11:01:02 schmirl Exp $ +# $Id: Makefile,v 1.9 2008/02/11 16:13:46 schmirl Exp $ # The official name of this plugin. # This name will be used in the '-P...' option of VDR to load the plugin. @@ -85,8 +85,10 @@ ifeq ($(shell test -f $(VDRDIR)/sections.c ; echo $$?),0) DEFINES += -DHAVE_AUTOPID endif -libdvbmpeg/libdvbmpegtools.a: libdvbmpeg/*.c libdvbmpeg/*.cc libdvbmpeg/*.h libdvbmpeg/*.hh - make -C ./libdvbmpeg libdvbmpegtools.a +### The main target: + +.PHONY: all dist clean +all: libvdr-$(PLUGIN)-client.so libvdr-$(PLUGIN)-server.so ### Implicit rules: @@ -113,7 +115,9 @@ endif ### Targets: -all: libvdr-$(PLUGIN)-client.so libvdr-$(PLUGIN)-server.so +libdvbmpeg/libdvbmpegtools.a: libdvbmpeg/*.c libdvbmpeg/*.cc libdvbmpeg/*.h libdvbmpeg/*.hh + make -C ./libdvbmpeg libdvbmpegtools.a + libvdr-$(PLUGIN)-client.so: $(CLIENTOBJS) $(COMMONOBJS) libdvbmpeg/libdvbmpegtools.a libvdr-$(PLUGIN)-server.so: $(SERVEROBJS) $(COMMONOBJS) libdvbmpeg/libdvbmpegtools.a