[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug#561504: update make -n documentation on Debian

From: jidanni
Subject: Bug#561504: update make -n documentation on Debian
Date: Fri, 18 Dec 2009 02:27:00 +0800

Package: make
Version: 3.81-7
Severity: wishlist
X-debbugs-cc: address@hidden

Me again. Same problem as before with the documentation.

     "No-op".  The activity is to print what commands would be used to
     make the targets up to date, but not actually execute them.

$ make -n a
mkdir -p /tmp/pots
make -n guts > /tmp/pots/`date +%s`
/bin/sh: /tmp/pots/1261073715: No such file or directory
make: *** [a] Error 1

This proves that some things really do get executed...
Which to me is just as dangerous as a Microsoft executable email to a
Windows user... I will shoot my own foot executing things I wrote but
didn't intend to execute, thinking make -n was as safe as sh -n.

$ cat Makefile
        export LC_ALL=zh_TW.UTF-8 &&\
        ./mec|xargs --verbose --no-run-if-empty w3m -no-cookie -cols 111 -dump
        mkdir -p /tmp/pots
         $(MAKE) $(MFLAGS) guts > /tmp/pots/`date +%s`
        ls -og /tmp/pots

Hope the documentation gets fixed on Debian at least.
$ stat /usr/share/doc/make/changelog.gz|grep Mod
Modify: 2006-04-11 06:03:46.000000000 +0800
Seems Debian is stuck with four year old make.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]