From 574c60e6fb4edbcc0162014b2051b50c5f6b28d7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 5 Aug 2023 15:27:10 -0300 Subject: Makefile: Add proper dependency between txt files and script --- Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 96304c3..955bb70 100644 --- a/Makefile +++ b/Makefile @@ -77,12 +77,16 @@ $(HOME)/mnt/crypt/.keep: $(HOME)/mnt/suyin/enc if [ ! -e $@ ]; then cryfs $? $(@D); fi touch $@ -$(HOME)/Documents/txt/: - mkdir -p $@ - touch $@/TODOs.md - touch $@/scratch.txt +$(HOME)/Documents/txt/TODOs.md: + mkdir -p $(@D) + touch $@ + +$(HOME)/Documents/txt/scratch.txt: + mkdir -p $(@D) + touch $@ -$(XDG_DATA_HOME)/euandreh/e.list.txt: $(HOME)/Documents/txt/ opt/aux/gen-e-list.sh +$(XDG_DATA_HOME)/euandreh/e.list.txt: opt/aux/gen-e-list.sh \ + $(HOME)/Documents/txt/TODOs.md $(HOME)/Documents/txt/scratch.txt sh opt/aux/gen-e-list.sh > $@ -- cgit v1.2.3