1#ident @(#)rules.clr	1.7 10/10/02
2###########################################################################
3# Written 1996 by J. Schilling
4###########################################################################
5#
6# Rules to make source tree clean
7#
8###########################################################################
9# Copyright (c) J. Schilling
10###########################################################################
11# The contents of this file are subject to the terms of the
12# Common Development and Distribution License, Version 1.0 only
13# (the "License").  You may not use this file except in compliance
14# with the License.
15#
16# See the file CDDL.Schily.txt in this distribution for details.
17# A copy of the CDDL is also available via the Internet at
18# http://www.opensource.org/licenses/cddl1.txt
19#
20# When distributing Covered Code, include this CDDL HEADER in each
21# file and include the License file CDDL.Schily.txt from this distribution.
22###########################################################################
23# Do not remove target if it is in the current directory
24###########################################################################
25RMTARGET=	$(PTARGET:$(TARGET)%=%)
26###########################################################################
27clean:
28			$(RM) $(RM_FORCE)	$(CLEAN_FILES) $(POFILES) \
29						$(PTARGETC)	\
30						$(PMAPVERS)	\
31						$(CLEAN_FILEX) \
32						$(PYOFILES) $(PLOFILES)
33
34clobber:		clean
35			$(RM) $(RM_FORCE)	$(RMTARGET) $(PALLDEP_FILE) \
36						$(PTARGETC)	\
37						$(CLOBBER_FILEX)
38			$(RM) $(RM_FORCE)	$(ARCHDIR)/Dnull
39
40distclean:
41			$(RM) $(RM_RF)		$(CLEAN_FILES) \
42						.EDTMP *.bak OBJ/* \
43						$(SRCROOT)/libs/* $(SRCROOT)/incs/*
44
45rmtarget:
46			$(RM) $(RM_FORCE)	$(RMTARGET)
47
48relink:	rmtarget all
49