I'm packaging Nagios. It builds tree packages from one source: 'nagios-text', 'nagios-pgsql' and 'nagios-mysql'. The differences is quite obvious: Compile the source three times, each time with different ./configure options.
The problem I'm facing is that I want to 'scratch' the source after each build. Actually: build first package, move it aside, build second package - move it aside etc. This because the build should be done as non-root, and the install as root. The problem is in the 'target depends' of the Makefile (debian/rules in this case). A test makefile: ----- s n i p ----- file3: file1-stamp @echo "3. In file3..." file2: @echo "2. Removing file1-stamp" @rm file1-stamp file1: file1-stamp file1-stamp: @echo "1. Touching file1-stamp" @touch file1-stamp test: file1 file2 file3 @echo "4. In test..." ----- s n i p ----- gives this output: ----- s n i p ----- tuzjfi:/tmp# make test 1. Touching file1-stamp 2. Removing file1-stamp 3. In file3... 4. In test... ----- s n i p ----- I _EXPECTED_: ----- s n i p ----- tuzjfi:/tmp# make test 1. Touching file1-stamp 2. Removing file1-stamp 1. Touching file1-stamp 3. In file3... 4. In test... ----- s n i p ----- The key point was that there was no second point 1 (Touching file1-stamp). Since the 'file1-stamp' file where removed, I had expected 'make' to re-create it! It doesn't... Any one have any idea? -- Cuba SDI BATF genetic president NSA SEAL Team 6 congress FBI FSF iodine subway Soviet Albanian class struggle [See http://www.aclu.org/echelonwatch/index.html for more about this] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]