From 71c508d7c6b87781a4468e065f61c0c134e934e0 Mon Sep 17 00:00:00 2001 From: Philipp Stadler <hello@phstadler.com> Date: Sat, 13 Jul 2024 10:18:45 +0200 Subject: [PATCH] chore: only build newest changelog --- Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index c6ba506..8e2a839 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,12 @@ -export RELEASE_DIR_STEM := sinologie-1 +export RELEASE_DIR_STEM := sinology-1 export VERSION := $(file < version.txt) export CONTENT_DIR := $(PWD)/content -# overrides the target of all git commands in this make and the the submake, -# with the effect that changelogs are about the parent repo -export GIT_DIR := $(PWD)/.git -.PHONY: apkg -apkg: build - $(MAKE) -C build +.PHONY: all +all: build +# git commands in submake use the parent repo to generate the changelog, not +# the build repo + GIT_DIR=$(PWD)/.git $(MAKE) -C build apkg announce changelog-last-version .PHONY: mostlyclean mostlyclean: @@ -24,4 +23,4 @@ deepclean: build: build.git build.sha -rm -rf build git clone $(file < build.git) build - cd build && GIT_DIR=$(PWD)/build/.git git reset --hard $(file < build.sha) + cd build && git reset --hard $(file < build.sha) -- GitLab