std-targets.mk: Add file

Add std-targets.mk, meant to be included mostly to make sure all
mandatory targets are there. On clean and distclean, it also removes
stuff that should not be there anymore after clean.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-01-25 16:12:33 +01:00
commit 494d5d29d6
2 changed files with 13 additions and 11 deletions

View file

@ -1,13 +1,5 @@
# generic utility modules # This snippet is meant to be included from directory which should be visited
# (c) 2001 jannet it services # by jw-pkg, but which doesn't have anything special to do.
# contact@jannet.de
# $Id$
include $(JWBDIR)/make/defs.mk include $(JWBDIR)/make/defs.mk
include $(JWBDIR)/make/std-targets.mk
all:
clean:
$(RM) -rf *~ .*.swp
install: # nothing to be done
all: # nothing to be done
distclean: clean

10
make/std-targets.mk Normal file
View file

@ -0,0 +1,10 @@
# This file contains a set of targets which
# 1. are conclusive (i.e. all mandatory targets)
# 2. don't hurt
all:
install:
clean: clean.std-targets
clean.std-targets:
$(RM) -rf *~ .*.swp *.done
distclean: clean