feat(rules): new pack daw-makefile for Makefile-specific rules #31

Open
opened 2026-05-25 10:30:48 +02:00 by michael · 0 comments
Owner

Problem

No pack exists for Makefile-specific rules. Makefile checks are currently
scattered across daw-project, daw-module and daw-lib as makefile-has-*
rules (see DAW/fragjan#28, DAW/fragjan#29). Deprecated variable names
from daw-build-variables.md are not enforced at all.

Solution

New pack: daw-makefile
applies_to: lua-host, lua-module, lua-lib

Positive rules (must be present):

  • makefile-has-daw-project: Makefile contains 'DAW_PROJECT' (contains)
  • makefile-has-lua-mk: Makefile contains 'lua.mk' (contains)

Deprecated variable rules (must not be present, pattern + negate):

  • makefile-no-project-name: PROJECT_NAME
  • makefile-no-name: 'NAME ?='
  • makefile-no-uname-s: UNAME_S
  • makefile-no-uname: 'UNAME '
  • makefile-no-lua-install-path: LUA_INSTALL_PATH
  • makefile-no-luadir: LUADIR
  • makefile-no-lua-bin: 'LUA ='
  • makefile-no-group: 'GROUP '
  • makefile-no-prefix: 'PREFIX '
  • makefile-no-cc: 'CC '
  • makefile-no-cflags: 'CFLAGS '
  • makefile-no-install-root: INSTALL_ROOT
  • makefile-no-install-lib-dir: INSTALL_LIB_DIR

All rules use daw.fragjan.check.contains or daw.fragjan.check.pattern
on file_pattern: "Makefile".

Notes

makefile-has-test, makefile-has-install, makefile-has-dist,
makefile-has-release from DAW/fragjan#28 and DAW/fragjan#29
should also move into this pack once implemented.

  • DAW/fragjan#28 (missing rules -- makefile targets)
  • DAW/fragjan#29 (makefile-has-test, makefile-has-install)
  • daw-build-variables.md section Veraltet
## Problem No pack exists for Makefile-specific rules. Makefile checks are currently scattered across daw-project, daw-module and daw-lib as makefile-has-* rules (see DAW/fragjan#28, DAW/fragjan#29). Deprecated variable names from daw-build-variables.md are not enforced at all. ## Solution New pack: daw-makefile applies_to: lua-host, lua-module, lua-lib **Positive rules** (must be present): - makefile-has-daw-project: Makefile contains 'DAW_PROJECT' (contains) - makefile-has-lua-mk: Makefile contains 'lua.mk' (contains) **Deprecated variable rules** (must not be present, pattern + negate): - makefile-no-project-name: PROJECT_NAME - makefile-no-name: 'NAME ?=' - makefile-no-uname-s: UNAME_S - makefile-no-uname: 'UNAME ' - makefile-no-lua-install-path: LUA_INSTALL_PATH - makefile-no-luadir: LUADIR - makefile-no-lua-bin: 'LUA =' - makefile-no-group: 'GROUP ' - makefile-no-prefix: 'PREFIX ' - makefile-no-cc: 'CC ' - makefile-no-cflags: 'CFLAGS ' - makefile-no-install-root: INSTALL_ROOT - makefile-no-install-lib-dir: INSTALL_LIB_DIR All rules use daw.fragjan.check.contains or daw.fragjan.check.pattern on file_pattern: "Makefile". ## Notes makefile-has-test, makefile-has-install, makefile-has-dist, makefile-has-release from DAW/fragjan#28 and DAW/fragjan#29 should also move into this pack once implemented. ## Related - DAW/fragjan#28 (missing rules -- makefile targets) - DAW/fragjan#29 (makefile-has-test, makefile-has-install) - daw-build-variables.md section Veraltet
michael added this to the Basic Version milestone 2026-05-30 16:08:29 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/fragjan#31
No description provided.