From: Joel Rosdahl Date: Fri, 26 Feb 2010 21:22:00 +0000 (+0100) Subject: Only clean non-dev stuff in Makefile's clean target X-Git-Tag: v3.0pre0~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c5b4b7efce655648d20176a330933aee7a7dd45;p=thirdparty%2Fccache.git Only clean non-dev stuff in Makefile's clean target --- diff --git a/Makefile.in b/Makefile.in index 466ee3259..65dca3041 100644 --- a/Makefile.in +++ b/Makefile.in @@ -28,6 +28,8 @@ headers = \ objs = $(all_sources:.c=.o) +files_to_clean = $(objs) *~ ccache$(EXEEXT) ccache.1 + .PHONY: all all: ccache$(EXEEXT) @@ -49,8 +51,7 @@ install: all .PHONY: clean clean: - rm -f $(objs) *~ ccache$(EXEEXT) .deps/* ccache.1 \ - $(dist_archive_tar_bz2) $(dist_archive_tar_gz) + rm -f $(files_to_clean) .PHONY: test test: test.sh diff --git a/dev.mk.in b/dev.mk.in index 7533bafb4..b046d9606 100644 --- a/dev.mk.in +++ b/dev.mk.in @@ -4,11 +4,13 @@ version = $(shell sed -n 's/^\#define CCACHE_VERSION "\(.*\)"/\1/p' \ dist_dir = ccache-$(version) dist_archive_tar_bz2 = ccache-$(version).tar.bz2 dist_archive_tar_gz = ccache-$(version).tar.gz +files_to_clean += $(dist_archive_tar_bz2) $(dist_archive_tar_gz) source_dist_files = \ $(sources) $(headers) zlib/*.c zlib/*.h \ config.h.in configure configure-dev dev.mk.in install-sh Makefile.in \ - test.sh COPYING INSTALL NEWS README + test.sh COPYING INSTALL NEWS README \ + .deps/* built_dist_files = ccache.1 dist_files = \ $(addprefix $(srcdir)/, $(source_dist_files)) \