Commit 57733624 authored by Sam Ravnborg's avatar Sam Ravnborg

kbuild: Distributed clean, misc.

o Move sound/oss file list to sound/oss/Makefile
o Remove files non-existing in the tree (khttp,net/802/submenu)
o scripts/* are handled by scripts makefile
o Do not delete .config*, be more explicit
o Add MC* - files generated by Menuconfig in toplevel dir
parent 87547a92
......@@ -670,27 +670,12 @@ defconfig:
# make distclean Remove editor backup files, patch leftover files and the like
# Files removed with 'make clean'
CLEAN_FILES += \
include/linux/compile.h \
vmlinux System.map \
drivers/char/drm/*-mod.c \
sound/oss/bin2hex sound/oss/hex2hex \
net/802/cl2llc.c net/802/transit/pdutr.h net/802/transit/timertr.h \
net/802/pseudo/pseudocode.h \
net/khttpd/make_times_h net/khttpd/times.h \
submenu*
CLEAN_FILES += vmlinux System.map MC*
# Files removed with 'make mrproper'
MRPROPER_FILES += \
include/linux/autoconf.h include/linux/version.h \
sound/oss/*_boot.h sound/oss/.*.boot \
sound/oss/msndinit.c \
sound/oss/msndperm.c \
sound/oss/pndsperm.c \
sound/oss/pndspini.c \
.version .config* config.in config.old \
scripts/tkparse scripts/kconfig.tk scripts/kconfig.tmp \
scripts/lxdialog/*.o scripts/lxdialog/lxdialog \
.version .config .config.old config.in config.old \
.menuconfig.log \
include/asm \
.hdepend include/linux/modversions.h \
......
......@@ -4,17 +4,21 @@
obj-y := main.o version.o do_mounts.o
# files to be removed upon make clean
clean-files := ../include/linux/compile.h
include $(TOPDIR)/Rules.make
# dependencies on generated files need to be listed explicitly
$(obj)/version.o: $(objtree)/include/linux/compile.h
$(obj)/version.o: $(obj)/../include/linux/compile.h
# compile.h changes depending on hostname, generation number, etc,
# so we regenerate it always.
# mkcompile_h will make sure to only update the
# actual file if its content has changed.
$(objtree)/include/linux/compile.h: FORCE
@echo -n ' Generating $@'
$(obj)/../include/linux/compile.h: FORCE
@echo -n ' Generating $(echo_target)'
@$(srctree)/scripts/mkcompile_h $@ "$(ARCH)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)"
......@@ -96,6 +96,10 @@ wavefront-objs := wavfront.o wf_midi.o yss225.o
host-progs := bin2hex hex2hex
# Files generated that shall be removed upon make clean
clean-files := maui_boot.h msndperm.c msndinit.c pndsperm.c pndspini.c \
pss_boot.h trix_boot.h
include $(TOPDIR)/Rules.make
# Firmware files that need translation
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment