From 4fb288ea19932f88dc7c555a1f7e407f0bba491d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 14 Apr 2022 13:11:08 +0530 Subject: Makefile: Add clean target. * Makefile (.PHONY): Add clean. (clean): New target. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ce6142c..d2105f1 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ scripts = $(wildcard bin/*) scmdir = $(datarootdir)/guile/site/$(guile_effective_version)/$(top_level_module_dir) godir = $(libdir)/guile/$(guile_effective_version)/site-ccache/$(top_level_module_dir) -.PHONY: all check install +.PHONY: all check install clean all: $(objects) @@ -49,3 +49,6 @@ install: $(scripts) install -D $^ --target-directory $(bindir) install -D $(sources) --target-directory $(scmdir) install -D $(objects) --target-directory $(godir) + +clean: + rm -f $(objects) -- cgit v1.2.3