Fix "make dist" in datapath/linux-2.4 when --with-l24 not used.

This makes the linux-2.4 Makefile.main.in structure much more
similar to the linux-2.6 Makefile.main.in.
This commit is contained in:
Ben Pfaff committed 2008-06-04 16:14:23 -07:00
1 parent 0d72ebf26b
commit fac543387f
1 file changed
+11 -12
+11 -12
View File
@@ -12,18 +12,26 @@ include $(srcdir)/../Modules.mk
include $(srcdir)/Modules.mk
include @HW_TABLES@
all: default
default: $(all_links)
$(foreach m,$(all_modules), \
$(foreach s,$($(m)_sources), \
$(eval $(notdir $(s)): ; ln -s $(srcdir)/../$(s) .)))
# Verify Kernel Sources
distclean: clean
distdir: clean
install:
all: default
check: all
clean:
rm -f *.o *_mod.o .*.o.flags
for d in $(all_links); do if test -h $$d; then rm $$d; fi; done
ifneq (,$(KSRC))
ifneq ($(shell grep -c 'PATCHLEVEL = 4' $(KSRC)/Makefile),1)
$(error Linux kernel source in $(KSRC) not 2.4)
endif
ifneq (,$(KSRC))
ifeq (/lib/modules/$(shell uname -r)/source, $(KSRC))
KOBJ := /lib/modules/$(shell uname -r)/build
else
@@ -58,13 +66,4 @@ endif
all:
$(MAKE) -C $(KSRC) $(ARCH_OVERRIDE) CROSS_COMPILE=$(CROSS_COMPILE) SUBDIRS=$(PWD) modules
distclean: clean
distdir: clean
clean:
rm -f *.o *_mod.o .*.o.flags
for d in $(all_links); do if test -h $$d; then rm $$d; fi; done
check: all
install:
endif # (,$(KSRC))