From 11839743dca3673cba07c234262d50639f0b0a06 Mon Sep 17 00:00:00 2001 From: Juhani Krekelä Date: Sun, 16 Feb 2025 01:49:39 +0200 Subject: Add an "all" target to Makefile If make(1) is invoked without specifying a target name, it will run the first target in the file, which used to be "install". Add an "all" target before it to avoid violating the principle of least astonishment. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 562ce45..89997db 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,8 @@ PREFIX ?= /usr/local SRC != find src -type f +all: later.pyz + install: later.pyz later.1 install -D -m 755 later.pyz '${DESTDIR}${PREFIX}/bin/later' install -D -m 644 -t '${DESTDIR}${PREFIX}/share/man/man1' later.1 @@ -15,4 +17,4 @@ clean: test: pytest -q -.PHONY: install clean test +.PHONY: all install clean test -- cgit v1.2.3-2-gb3c3