diff options
author | joey <joey> | 1999-09-30 19:50:06 +0000 |
---|---|---|
committer | joey <joey> | 1999-09-30 19:50:06 +0000 |
commit | e1fb0a64cfe30960aa4edacf224921b888443dc8 (patch) | |
tree | 2a0ceb3088ab9b398fd4e520ef3aa3d72bfdd3b9 /examples | |
parent | c57d49934a1500acb3dafaaf32da8bbef1b52314 (diff) |
r286: * Fiddlesticks. The neat make trick I was using in rules.multi2 failed if
you try to build binary-indep and binary-arch targets in the same make
run. Make tries to be too smart. Modified the file so it will work,
though it's now uglier. Closes: 46287
* examples/*: It's important that one -not- use a install-stamp target.
Install should run every time binary-* calls it. Otherwise if a binary-*
target is called twice by hand, you get duplicate entries in the
maintainer script fragment files. Closes: #46313
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/rules | 5 | ||||
-rwxr-xr-x | examples/rules.indep | 3 | ||||
-rwxr-xr-x | examples/rules.multi | 5 | ||||
-rwxr-xr-x | examples/rules.multi2 | 9 |
4 files changed, 9 insertions, 13 deletions
diff --git a/examples/rules b/examples/rules index d24c2b8f..d2d9f5d0 100755 --- a/examples/rules +++ b/examples/rules @@ -20,7 +20,7 @@ build-stamp: clean: dh_testdir dh_testroot - rm -f build-stamp install-stamp + rm -f build-stamp # Add here commands to clean up after the build process. #-$(MAKE) clean @@ -28,8 +28,7 @@ clean: dh_clean -install: install-stamp -install-stamp: build-stamp +install: dh_testdir dh_testroot dh_clean -k diff --git a/examples/rules.indep b/examples/rules.indep index ecda654a..7b474a10 100755 --- a/examples/rules.indep +++ b/examples/rules.indep @@ -30,8 +30,7 @@ clean: dh_clean -install: install-stamp -install-stamp: build-stamp +install: dh_testdir dh_testroot dh_clean -k diff --git a/examples/rules.multi b/examples/rules.multi index fe8cc975..f16b3e64 100755 --- a/examples/rules.multi +++ b/examples/rules.multi @@ -35,9 +35,8 @@ clean: dh_clean -install: install-stamp -install-stamp: DH_OPTIONS= -install-stamp: build-stamp +install: DH_OPTIONS= +install: build-stamp dh_testdir dh_testroot dh_clean -k diff --git a/examples/rules.multi2 b/examples/rules.multi2 index 871c41c7..1f773311 100755 --- a/examples/rules.multi2 +++ b/examples/rules.multi2 @@ -83,13 +83,12 @@ binary-common: # Build architecture independant packages using the common target. # (Uncomment the next two lines and comment out the third if you have # such packages) -#binary-indep: DH_OPTIONS=-i -#binary-indep: build install binary-common -binary-indep: +#binary-indep: +# $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. -binary-arch: DH_OPTIONS=-a -binary-arch: build install binary-common +binary-arch: + $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common # Any other binary targets build just one binary package at a time. binary-%: build install |