From d0e9e203370f48cd6df94bc1ff3934e9e68eec89 Mon Sep 17 00:00:00 2001 From: Phil de Joux Date: Wed, 6 Dec 2023 12:41:02 -0500 Subject: [PATCH] Don't clobber with skeleton --- project-skeleton/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project-skeleton/Makefile b/project-skeleton/Makefile index ba07503..e6d8313 100644 --- a/project-skeleton/Makefile +++ b/project-skeleton/Makefile @@ -1,12 +1,12 @@ project-dhall/pkgs/%.dhall: \ updo/project-skeleton/pkgs/all-in-one.dhall mkdir -p project-dhall/pkgs - [ -e ./project-dhall/pkgs/*.dhall ] || cp $< project-dhall/pkgs/all-in-one.dhall + [ -e project-dhall/pkgs/$*.dhall ] || cp $< project-dhall/pkgs/all-in-one.dhall project-dhall/pkg-groups.dhall: \ updo/project-skeleton/pkg-groups.dhall \ - project-dhall/pkgs/*.dhall - cp $< $@ + $(wildcard project-dhall/pkgs/*.dhall) + [ -e $@ ] || cp $< $@ project-dhall/pkgs-upgrade-todo.dhall: \ updo/project-skeleton/pkgs-upgrade-todo.dhall