diff options
author | EuAndreh <eu@euandre.org> | 2023-08-05 15:27:10 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-08-05 15:27:10 -0300 |
commit | 574c60e6fb4edbcc0162014b2051b50c5f6b28d7 (patch) | |
tree | 475c8071050aae5b4f1b462557bb4dc4be1c73ab | |
parent | etc/git/ignore: Ignore .envrc by default (diff) | |
download | dotfiles-574c60e6fb4edbcc0162014b2051b50c5f6b28d7.tar.gz dotfiles-574c60e6fb4edbcc0162014b2051b50c5f6b28d7.tar.xz |
Makefile: Add proper dependency between txt files and script
-rw-r--r-- | Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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 > $@ |