diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-10-02 04:54:37 -0500 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-10-02 04:54:37 -0500 |
| commit | 6f16ca99262e6ccdf4a967f50f5d3a380e65b5d7 (patch) | |
| tree | 12497c639152c5d68b6c7b089cf1f260fadfa224 | |
| parent | 53065cc8d359213dac5a74bc9104895887f0620a (diff) | |
kbuild: Small quirks for separate obj / src trees
Add a couple of missing $(obj) and the like.
Also, remove the __chmod hack which made some files in the source tree
executable - hopefully, everybody's copy is by now ;)
| -rw-r--r-- | drivers/isdn/hisax/Makefile | 2 | ||||
| -rw-r--r-- | drivers/pci/Makefile | 2 | ||||
| -rw-r--r-- | drivers/zorro/Makefile | 2 | ||||
| -rw-r--r-- | scripts/Makefile | 11 | ||||
| -rw-r--r-- | scripts/lxdialog/Makefile | 6 |
5 files changed, 11 insertions, 12 deletions
diff --git a/drivers/isdn/hisax/Makefile b/drivers/isdn/hisax/Makefile index 24b244c546d2..9b0560bcf5e5 100644 --- a/drivers/isdn/hisax/Makefile +++ b/drivers/isdn/hisax/Makefile @@ -63,7 +63,7 @@ hisax-objs-$(CONFIG_HISAX_ENTERNOW_PCI) += enternow_pci.o amd7930_fn.o hisax-objs += $(hisax-objs-y) -CERT := $(shell md5sum -c md5sums.asc >> /dev/null;echo $$?) +CERT := $(shell cd $(src); md5sum -c md5sums.asc > /dev/null 2> /dev/null ;echo $$?) CFLAGS_cert.o := -DCERTIFICATION=$(CERT) include $(TOPDIR)/Rules.make diff --git a/drivers/pci/Makefile b/drivers/pci/Makefile index 14b5dcb183bf..307ea814439a 100644 --- a/drivers/pci/Makefile +++ b/drivers/pci/Makefile @@ -40,6 +40,6 @@ $(obj)/names.o: $(obj)/devlist.h $(obj)/classlist.h # And that's how to generate them $(obj)/devlist.h: $(src)/pci.ids $(obj)/gen-devlist - $(obj)/gen-devlist < $< + ( cd $(obj); ./gen-devlist ) < $< $(obj)/classlist.h: $(obj)/devlist.h diff --git a/drivers/zorro/Makefile b/drivers/zorro/Makefile index 61de905e594a..9bde458b4322 100644 --- a/drivers/zorro/Makefile +++ b/drivers/zorro/Makefile @@ -18,4 +18,4 @@ $(obj)/names.o: $(obj)/devlist.h # And that's how to generate them $(obj)/devlist.h: $(src)/zorro.ids $(obj)/gen-devlist - $(obj)/gen-devlist < $< + ( cd $(obj); ./gen-devlist ) < $< diff --git a/scripts/Makefile b/scripts/Makefile index 054afe4ef069..1265d9fca96d 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -9,18 +9,13 @@ # conmakehash: Create arrays for initializing the kernel console tables # tkparse: Used by xconfig -all: fixdep split-include docproc conmakehash __chmod +EXTRA_TARGETS := fixdep split-include docproc conmakehash # The following temporary rule will make sure that people's # trees get updated to the right permissions, since patch(1) # can't do it # --------------------------------------------------------------------------- -.PHONY: __chmod - -__chmod: kernel-doc mkcompile_h makelst - @chmod a+x $^ - host-progs := fixdep split-include conmakehash docproc tkparse tkparse-objs := tkparse.o tkcond.o tkgen.o @@ -30,7 +25,7 @@ include $(TOPDIR)/Rules.make # but it is not worth the effort to generate the dependencies. # The alternative solution to always generate it is fairly fast. # FORCE it to remake -$(obj)/kconfig.tk: $(srctree)/arch/$(ARCH)/config.in tkparse FORCE +$(obj)/kconfig.tk: $(srctree)/arch/$(ARCH)/config.in $(obj)/tkparse FORCE @echo ' Generating $@' @( \ if [ -f /usr/local/bin/wish ]; then \ @@ -51,7 +46,7 @@ $(obj)/kconfig.tk: $(srctree)/arch/$(ARCH)/config.in tkparse FORCE # Targets hardcoded and wellknow in top-level makefile .PHONY: lxdialog lxdialog: - $(MAKE) -C lxdialog all + $(call descend,lxdialog,) # fixdep is needed to compile other host programs $(obj)/split-include $(obj)/docproc $(addprefix $(obj)/,$(tkparse-objs)) \ diff --git a/scripts/lxdialog/Makefile b/scripts/lxdialog/Makefile index 153c8b99ffdd..4d10e93b6be0 100644 --- a/scripts/lxdialog/Makefile +++ b/scripts/lxdialog/Makefile @@ -20,10 +20,14 @@ host-progs := lxdialog lxdialog-objs := checklist.o menubox.o textbox.o yesno.o inputbox.o \ util.o lxdialog.o msgbox.o -all: ncurses lxdialog +EXTRA_TARGETS := lxdialog + +first_rule: ncurses include $(TOPDIR)/Rules.make +.PHONY: ncurses + ncurses: @echo "main() {}" > lxtemp.c @if $(HOSTCC) lxtemp.c $(HOST_LOADLIBES); then \ |
