From 9deb4b75a9029e69357dec4d525912381db2ab2e Mon Sep 17 00:00:00 2001 From: namark <namark@disroot.org> Date: Sun, 23 Jun 2019 15:02:21 +0400 Subject: [PATCH] Added a todo for git HEAD dependency in Makefile. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index d1876f1..7474307 100644 --- a/Makefile +++ b/Makefile @@ -55,6 +55,7 @@ $(DISTDIR)/%$(BINEXT): $(TEMPDIR)/%.o $(TEMPDIR)/%.shell $(LOCALIB) | $(DISTDIR) @mkdir -p $(@D) $(CXX) $(LDFLAGS) $< $(LOCALIB) $(LDLIBS) -o $@ --shell-file $(TEMPDIR)/$*.shell +# TODO: dependency on HEAD file doesn't work, need to parse it and depend on it if it's a sha or specified file if it's a ref $(TEMPDIR)/%.shell: $(SHELL_TEMPLATE) $(GIT_HEAD_FILE) $(TITLIZE) @sed -e 's/__TITLE__/$(shell echo $* | $(TITLIZE))/g' -e 's/__COMMIT_SHA_FILE__/$(GIT_HEAD_SHA)\/$*.cpp/g' $(SHELL_TEMPLATE) > $@ -- GitLab