From owner-freebsd-ports@freebsd.org Tue Jan 2 09:19:59 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1AE9BEBCE1F for ; Tue, 2 Jan 2018 09:19:59 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F071077006; Tue, 2 Jan 2018 09:19:58 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 424249FEF; Tue, 2 Jan 2018 09:19:58 +0000 (UTC) From: Jan Beich To: Matthias Fechner Cc: freebsd-ports@freebsd.org Subject: Re: Creating patch files, skip post-patch References: Date: Tue, 02 Jan 2018 10:19:54 +0100 In-Reply-To: (Matthias Fechner's message of "Tue, 2 Jan 2018 09:37:18 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jan 2018 09:19:59 -0000 Matthias Fechner writes: > Dear all, > > I have some ports I maintain and in some of them I have > post-patch-{{OPTION}}-on Makefile targets in that is patching files. > But to update the files I need a file where only the patches from > files/patch-* are applied. > > Is there a possibility to skip the post-patch target from the Makefile > so I can do: > > make patch (without post-patch from Makefile) > modify the files > make makepatch Try do-patch e.g., $ make clean extract do-patch makepatch EXTRA_PATCHES= BATCH=