From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 31E3D158087 for ; Fri, 21 Jan 2022 22:08:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E81172BC019; Fri, 21 Jan 2022 22:08:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B7C212BC019 for ; Fri, 21 Jan 2022 22:08:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 39EC734340C for ; Fri, 21 Jan 2022 22:08:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A9A1E2A0 for ; Fri, 21 Jan 2022 22:08:05 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1642802673.b86ec5d5a0f7503d1cbb3d994f7b65f8b73a3592.ulm@gentoo> Subject: [gentoo-commits] proj/nxml-gentoo-schemas:master commit in: / X-VCS-Repository: proj/nxml-gentoo-schemas X-VCS-Files: .gitignore Makefile X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: b86ec5d5a0f7503d1cbb3d994f7b65f8b73a3592 X-VCS-Branch: master Date: Fri, 21 Jan 2022 22:08:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 516a6f9e-95eb-415d-8af1-dc3d49c8cc18 X-Archives-Hash: 5f054508abeafe0b203875d75f81253e commit: b86ec5d5a0f7503d1cbb3d994f7b65f8b73a3592 Author: Ulrich Müller gentoo org> AuthorDate: Fri Jan 21 22:04:33 2022 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Fri Jan 21 22:04:33 2022 +0000 URL: https://gitweb.gentoo.org/proj/nxml-gentoo-schemas.git/commit/?id=b86ec5d5 Makefile: New dist target replaces $(TARBALL) Use tar --transform, so we don't need a temporary directory. Signed-off-by: Ulrich Müller gentoo.org> .gitignore | 1 + Makefile | 20 ++++++++------------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 7d15794..fb79b6a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.dtd +*.tar.xz diff --git a/Makefile b/Makefile index e9c6372..acba372 100644 --- a/Makefile +++ b/Makefile @@ -4,25 +4,21 @@ DTDS = devbook.dtd glsa.dtd metadata.dtd mirrors.dtd \ RNCS = $(patsubst %.dtd,%.rnc,$(DTDS)) ifneq ($(PV),) -PN=nxml-gentoo-schemas-$(PV) +P=nxml-gentoo-schemas-$(PV) else -PN=nxml-gentoo-schemas-$(shell TZ=UTC date '+%Y%m%d') +P=nxml-gentoo-schemas-$(shell TZ=UTC date '+%Y%m%d') endif -TARBALL=$(PN).tar.xz - -.PHONY: all clean +.PHONY: all dist clean .PRECIOUS: $(RNCS) $(DTDS) -all: $(TARBALL) +all: $(RNCS) -clean: - rm -f *.dtd +dist: Makefile LICENCE schemas.xml $(RNCS) + tar -cJf $(P).tar.xz --transform='s%^%$(P)/%' $^ -$(TARBALL): Makefile LICENCE schemas.xml $(RNCS) - mkdir -p $(PN) - cp $^ $(PN) - tar cJf $@ $(PN) +clean: + rm -f *.dtd *.tar.xz %.rnc: %.dtd trang -I dtd -O rnc $< $@