summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2023-04-04 20:08:39 +0200
committerVivien Kraus <vivien@planete-kraus.eu>2023-04-29 11:58:03 +0200
commit73a5639a652406e04f4157103de674355207ecc8 (patch)
tree5ad925b86e0e7a526477ac89c7895f4c78b0d988 /cfg.mk
parentaff2a2daebd4626cd6efb7663818962c0c22bc9a (diff)
Make sure the GNUmakefile works in out-of-tree builds
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/cfg.mk b/cfg.mk
index cc6e35c..0b719ae 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -38,10 +38,10 @@ sc_appstream_news_hash:
|| (echo "The appstream news in src/libdisfluid/disfluid-version.h should be updated to reflect the changes in NEWS. Once this is done, write the NEWS hash in the file: $(NEWS_hash)" ; \
exit 1)
-find_mdate = $(GIT) log -1 --pretty=format:%ai doc/disfluid.texi
+find_mdate = $(GIT) log -1 --pretty=format:%ai $(srcdir)/doc/disfluid.texi
find_mdate_full = LANG=en_US.UTF-8 date -u --date="$$($(find_mdate))" '+%d %B %Y'
find_mdate_month = LANG=en_US.UTF-8 date -u --date="$$($(find_mdate))" '+%B %Y'
sc_manual_update_date:
- @if UPDATED=$$($(find_mdate_full)) ; then $(GREP) "^@set UPDATED $${UPDATED}\$$" doc/disfluid.texi > /dev/null 2>&1 || (echo "The manual was last updated $$UPDATED, please change the UPDATED variable definition." ; exit 1) ; fi
- @if UPDATED_MONTH=$$($(find_mdate_month)) ; then $(GREP) "^@set UPDATED-MONTH $${UPDATED_MONTH}\$$" doc/disfluid.texi > /dev/null 2>&1 || (echo "The manual was last updated $$UPDATED_MONTH, please change the UPDATED-MONTH variable definition." ; exit 1) ; fi
+ @if UPDATED=$$($(find_mdate_full)) ; then $(GREP) "^@set UPDATED $${UPDATED}\$$" $(srcdir)/doc/disfluid.texi > /dev/null 2>&1 || (echo "The manual was last updated $$UPDATED, please change the UPDATED variable definition." ; exit 1) ; fi
+ @if UPDATED_MONTH=$$($(find_mdate_month)) ; then $(GREP) "^@set UPDATED-MONTH $${UPDATED_MONTH}\$$" $(srcdir)/doc/disfluid.texi > /dev/null 2>&1 || (echo "The manual was last updated $$UPDATED_MONTH, please change the UPDATED-MONTH variable definition." ; exit 1) ; fi