---
name: "zmk.AllClean"
section: "5"
platform: "linux"
package: "zmk-doc"
version: "0.5.1-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/zmk.AllClean"
---

# zmk.AllClean(5)

template for files that can built and cleaned

## NAME

**AllClean** – template for files that can built and cleaned

## SYNOPSIS

```
include z.mk
$(eval $(call ZMK.Expand,AllClean,instanceName))
```

## DESCRIPTION

The **AllClean** template once *expanded* with a target *instance* *name* makes **all** depend on **$(instanceName)**, and makes **clean** remove **$(instanceName)**. It can be used to avoid duplicating the same two rules across many buildable entities. It is used internally by other templates.

Actual rules for building **$(instanceName)** need to be provided separately.

## TARGETS

This module provides the following targets.

### all

This *phony* target depends on **$(instanceName)**.

### clean

This *phony* target removes **$(instanceName)**.

## VARIABLES

This module does not provide any variables.

## HISTORY

The **AllClean** template first appeared in zmk 0.3

## AUTHORS

Zygmunt Krynicki ⟨*me@zygoon.pl*⟩
