From patchwork Thu Jan 28 16:26:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 25236 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 3F71A44BC03 for ; Thu, 28 Jan 2021 18:27:38 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 25EE468A68F; Thu, 28 Jan 2021 18:27:38 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6B8E968A67E for ; Thu, 28 Jan 2021 18:27:32 +0200 (EET) Received: by mail-ed1-f52.google.com with SMTP id c2so7278509edr.11 for ; Thu, 28 Jan 2021 08:27:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RlJCyCflgxdjtFla0XdnyiGoQpqkWRnKBttzcIV1u+4=; b=FDCkz9Up1OF4pvqQSOICoXF20nGMZV7pLIHNhTpV6ZPKftfCxkVWHXssLpFM/6SQi7 Ylt7IDpngF1PeRskqSDuTL5UTHplxOwdBcgzkSQ6O4BgAPfKMlNSwKP/fOIYfBOdgugR SoUi8vZz+T4jHDTalXaclQ4GnR3mgrHfHj0k9moJ8tjl7cSp4mLdqtWH5p9gMR/2FJF0 75YMPk5/mdCUWz6Z/Z+KUZs30RA0jCI1ZjugL/eAXs5bb8fHpvZLvmioqC3UjBeqUIah 8sSBBoCY1Ezv+RrGPorgwbM2wPpxISHCaaPf5EHtywlEDL1s1wH2HhvOQR33yQMkSoXT QC4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RlJCyCflgxdjtFla0XdnyiGoQpqkWRnKBttzcIV1u+4=; b=D1jSffPQnrMFap6/PC/Kb1lJtkfKuEV5trtz+VkQihUkg9OSlFT175HlwyNer37kb+ h4KFHX43eKGji0HHqH8b44dZ9LonAzmuRNkULHHW7zGe6Hhm2m+SykAnYwfRyEzSuzEG 0Ak8Gtt9/KaB8BVVnhke7bbZfNgY82fhu3GGyolJBvtD0K2Bfom654jZSzkvd61EntT4 i+8fjnu2LHQwTr/LokMKrEgpgcbQplC/w7fpxDlcVloq06M5B/+bJ67x7ChW62QAPpbA p1S8bNchAexkjRJI0BgPRczPAVtyLEjyqTMarjmC7HEvJuUvYU/ktIOvT87kv95lZdyL B3uQ== X-Gm-Message-State: AOAM53331vr2iIN9wikkGn7Pbqd8FsYH9YqGmEWWsLIh7BHMWH3WEMW0 UrStLLxWJZca8Zj0EWQLx8xkB+8WFWw= X-Google-Smtp-Source: ABdhPJxwfF1eKLNaRzhCYGov6PwezAtliUUXGcAWGlp0DbTSHIhA0roB54UzjaaMpp2oqfwvwtY4hA== X-Received: by 2002:a05:6402:5112:: with SMTP id m18mr327549edd.129.1611851251829; Thu, 28 Jan 2021 08:27:31 -0800 (PST) Received: from sblaptop.fritz.box (ipbcc1aa4b.dynamic.kabel-deutschland.de. [188.193.170.75]) by smtp.gmail.com with ESMTPSA id dj25sm3185288edb.5.2021.01.28.08.27.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jan 2021 08:27:30 -0800 (PST) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 28 Jan 2021 17:26:42 +0100 Message-Id: <20210128162646.2811269-2-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210128162646.2811269-1-andreas.rheinhardt@gmail.com> References: <20210128162646.2811269-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/6] ffbuild/common: Make deletion of templates possible X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" If a target to be built includes a template file, the target's .d file includes the template file as a prerequisite; if the code were changed so that the template file no longer exists, one would get an error from make that it has no rule for the template file target. Therefore add a dummy rule for template files to make deleting them possible. Signed-off-by: Andreas Rheinhardt --- ffbuild/common.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffbuild/common.mak b/ffbuild/common.mak index 13e13553b8..e070b6b5e2 100644 --- a/ffbuild/common.mak +++ b/ffbuild/common.mak @@ -107,7 +107,7 @@ COMPILE_MSA = $(call COMPILE,CC,MSAFLAGS) %.c %.h %.pc %.ver %.version: TAG = GEN # Dummy rule to stop make trying to rebuild removed or renamed headers -%.h: +%.h %_template.c: @: # Disable suffix rules. Most of the builtin rules are suffix rules,