diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-03-08 12:39:05 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-03-08 12:39:05 -0500 |
commit | 0131705d589e2341dbc5e8946a60f83d8c1773dc (patch) | |
tree | c6683e48cfed5e71a082980d7d816b4034595ee9 /scripts/package/Makefile | |
parent | f7b05e64bdb2fcc4b2dc94a4bd9426adc70c9599 (diff) |
kbuild: replace PHONY with FORCE
.PHONY: does not take patterns so use FORCE to achive same effect.
Thanks to "Paul D. Smith" <psmith@gnu.org> for noticing this.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/package/Makefile')
-rw-r--r-- | scripts/package/Makefile | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/scripts/package/Makefile b/scripts/package/Makefile index d3038b7643ae..7c434e037e7f 100644 --- a/scripts/package/Makefile +++ b/scripts/package/Makefile | |||
@@ -32,12 +32,11 @@ MKSPEC := $(srctree)/scripts/package/mkspec | |||
32 | PREV := set -e; cd ..; | 32 | PREV := set -e; cd ..; |
33 | 33 | ||
34 | # rpm-pkg | 34 | # rpm-pkg |
35 | PHONY += rpm-pkg rpm | 35 | # --------------------------------------------------------------------------- |
36 | |||
37 | $(objtree)/kernel.spec: $(MKSPEC) $(srctree)/Makefile | 36 | $(objtree)/kernel.spec: $(MKSPEC) $(srctree)/Makefile |
38 | $(CONFIG_SHELL) $(MKSPEC) > $@ | 37 | $(CONFIG_SHELL) $(MKSPEC) > $@ |
39 | 38 | ||
40 | rpm-pkg rpm: $(objtree)/kernel.spec | 39 | rpm-pkg rpm: $(objtree)/kernel.spec FORCE |
41 | $(MAKE) clean | 40 | $(MAKE) clean |
42 | $(PREV) ln -sf $(srctree) $(KERNELPATH) | 41 | $(PREV) ln -sf $(srctree) $(KERNELPATH) |
43 | $(PREV) tar -cz $(RCS_TAR_IGNORE) -f $(KERNELPATH).tar.gz $(KERNELPATH)/. | 42 | $(PREV) tar -cz $(RCS_TAR_IGNORE) -f $(KERNELPATH).tar.gz $(KERNELPATH)/. |
@@ -54,11 +53,11 @@ rpm-pkg rpm: $(objtree)/kernel.spec | |||
54 | clean-files := $(objtree)/kernel.spec | 53 | clean-files := $(objtree)/kernel.spec |
55 | 54 | ||
56 | # binrpm-pkg | 55 | # binrpm-pkg |
57 | PHONY += binrpm-pkg | 56 | # --------------------------------------------------------------------------- |
58 | $(objtree)/binkernel.spec: $(MKSPEC) $(srctree)/Makefile | 57 | $(objtree)/binkernel.spec: $(MKSPEC) $(srctree)/Makefile |
59 | $(CONFIG_SHELL) $(MKSPEC) prebuilt > $@ | 58 | $(CONFIG_SHELL) $(MKSPEC) prebuilt > $@ |
60 | 59 | ||
61 | binrpm-pkg: $(objtree)/binkernel.spec | 60 | binrpm-pkg: $(objtree)/binkernel.spec FORCE |
62 | $(MAKE) KBUILD_SRC= | 61 | $(MAKE) KBUILD_SRC= |
63 | set -e; \ | 62 | set -e; \ |
64 | $(CONFIG_SHELL) $(srctree)/scripts/mkversion > $(objtree)/.tmp_version | 63 | $(CONFIG_SHELL) $(srctree)/scripts/mkversion > $(objtree)/.tmp_version |
@@ -71,9 +70,7 @@ clean-files += $(objtree)/binkernel.spec | |||
71 | 70 | ||
72 | # Deb target | 71 | # Deb target |
73 | # --------------------------------------------------------------------------- | 72 | # --------------------------------------------------------------------------- |
74 | # | 73 | deb-pkg: FORCE |
75 | PHONY += deb-pkg | ||
76 | deb-pkg: | ||
77 | $(MAKE) KBUILD_SRC= | 74 | $(MAKE) KBUILD_SRC= |
78 | $(CONFIG_SHELL) $(srctree)/scripts/package/builddeb | 75 | $(CONFIG_SHELL) $(srctree)/scripts/package/builddeb |
79 | 76 | ||
@@ -82,8 +79,7 @@ clean-dirs += $(objtree)/debian/ | |||
82 | 79 | ||
83 | # tarball targets | 80 | # tarball targets |
84 | # --------------------------------------------------------------------------- | 81 | # --------------------------------------------------------------------------- |
85 | PHONY += tar%pkg | 82 | tar%pkg: FORCE |
86 | tar%pkg: | ||
87 | $(MAKE) KBUILD_SRC= | 83 | $(MAKE) KBUILD_SRC= |
88 | $(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@ | 84 | $(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@ |
89 | 85 | ||
@@ -92,7 +88,7 @@ clean-dirs += $(objtree)/tar-install/ | |||
92 | 88 | ||
93 | # Help text displayed when executing 'make help' | 89 | # Help text displayed when executing 'make help' |
94 | # --------------------------------------------------------------------------- | 90 | # --------------------------------------------------------------------------- |
95 | help: | 91 | help: FORCE |
96 | @echo ' rpm-pkg - Build the kernel as an RPM package' | 92 | @echo ' rpm-pkg - Build the kernel as an RPM package' |
97 | @echo ' binrpm-pkg - Build an rpm package containing the compiled kernel' | 93 | @echo ' binrpm-pkg - Build an rpm package containing the compiled kernel' |
98 | @echo ' and modules' | 94 | @echo ' and modules' |