From 7c80d10503545cc870c084def44c0ea4a95fd290 Mon Sep 17 00:00:00 2001 From: Freeyorp <TheFreeYorp+git@gmail.com> Date: Tue, 4 Jun 2024 14:16:59 +0000 Subject: [PATCH] Rename .make to .mk .mk is more widely understood than .make, for IDE usage. --- COPYING | 2 +- Makefile.in | 14 +++++++------- README.md | 2 +- generate.make => generate.mk | 0 tools/protocol.py | 2 +- version.make => version.mk | 0 6 files changed, 10 insertions(+), 10 deletions(-) rename generate.make => generate.mk (100%) rename version.make => version.mk (100%) diff --git a/COPYING b/COPYING index edf98aba..c1c13ff2 100644 --- a/COPYING +++ b/COPYING @@ -5,7 +5,7 @@ This combination is explicitly allowed by section 13 of the licenses. See gpl-3.0.txt or agpl-3.0.txt for specific terms. In order to make life easy for users who run this software publicly, -please set VENDOR_SOURCE in version.make if you make any modifications. +please set VENDOR_SOURCE in version.mk if you make any modifications. History: diff --git a/Makefile.in b/Makefile.in index 6fe2de6e..75f91f70 100644 --- a/Makefile.in +++ b/Makefile.in @@ -152,7 +152,7 @@ $(info The Road goes ever on and on ...) endif endif -include ${SRC_DIR}/version.make +include ${SRC_DIR}/version.mk ifeq (${ENABLE_SHARED},yes) LIB_SUFFIX_FAKE := so @@ -184,7 +184,7 @@ export PATH:=$(realpath ${SRC_DIR}/tools):${PATH} SHELL=bash # need to generate source files before path lists -$(shell make -f ${SRC_DIR}/generate.make >&2) +$(shell make -f ${SRC_DIR}/generate.mk >&2) stamp/generated.stamp: # if you get here, the shell above failed false @@ -688,15 +688,15 @@ override CPPFLAGS += -I . -I ${SRC_DIR}/include # distribution tarballs # this only works from within a git checkout -dist/%/version.make: +dist/%/version.mk: $(MKDIR_FIRST) - git --git-dir=${SRC_DIR}/.git show HEAD:version.make > $@ + git --git-dir=${SRC_DIR}/.git show HEAD:version.mk > $@ sed 's/^VERSION_FULL := .*/#&\nVERSION_FULL := ${VERSION_FULL}/' -i $@ sed 's/^VERSION_HASH := .*/#&\nVERSION_HASH := ${VERSION_HASH}/' -i $@ -dist/%-src.tar: dist/%/version.make +dist/%-src.tar: dist/%/version.mk git --git-dir=${SRC_DIR}/.git archive --prefix=$*/ -o $@ HEAD - ( mtime="$$(git --git-dir=${SRC_DIR}/.git log -n1 --pretty=%ci)" && cd dist && tar uf $*-src.tar --mtime="$${mtime}" --mode=664 --owner=root --group=root $*/version.make ) - rm dist/$*/version.make + ( mtime="$$(git --git-dir=${SRC_DIR}/.git log -n1 --pretty=%ci)" && cd dist && tar uf $*-src.tar --mtime="$${mtime}" --mode=664 --owner=root --group=root $*/version.mk ) + rm dist/$*/version.mk rmdir dist/$*/ dist/%-attoconf-only.tar: $(MKDIR_FIRST) diff --git a/README.md b/README.md index b2309f51..6de796f9 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ attoconf), but for any discussions related to TMW development. ## 1. Distributors. ### Important notes: -- Go read [version.make](version.make) +- Go read [version.mk](version.mk) - TMWA requires git to build by default, use 'make dist' to get a tarball. ### Platform dependencies: diff --git a/generate.make b/generate.mk similarity index 100% rename from generate.make rename to generate.mk diff --git a/tools/protocol.py b/tools/protocol.py index d63c22d4..08c82b27 100755 --- a/tools/protocol.py +++ b/tools/protocol.py @@ -7124,7 +7124,7 @@ def make_dots(ctx): #p = partition({k: ids_only(v.post) for (k, v) in d.items()}) if not os.path.exists('doc-gen'): - # generate.make will succeed if missing the wiki repo + # generate.mk will succeed if missing the wiki repo # but 'make doc' will fail return for g in glob.glob('doc-gen/*.gv'): diff --git a/version.make b/version.mk similarity index 100% rename from version.make rename to version.mk -- GitLab