B.A.T.M.A.N Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH 1/4] alfred: Don't fail rebuild when header is removed
@ 2013-09-21 14:31 Sven Eckelmann
  2013-09-21 14:31 ` [B.A.T.M.A.N.] [PATCH 2/4] alfred: Fix version number for git builds of vis Sven Eckelmann
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Sven Eckelmann @ 2013-09-21 14:31 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Sven Eckelmann

The *.d depends files for make just list the files used when building an object
file. Removing a file listed in such a dependency file causes make to search
for a way to recreate it. This usually cannot work because these files aren't
autogenerated.

The gcc option -MP can be used to generate empty rule for these files. Removing
a file in a dependency list will then execute this empty rule and continue with
the execution of the creation of the object file. This compilation process will
then automatically correct the dependency file.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 Makefile     | 2 +-
 vis/Makefile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index aeee2e8..ec9dc11 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ BINARY_NAME = alfred
 OBJ = main.o server.o client.o netsock.o send.o recv.o hash.o unix_sock.o util.o debugfs.o batadv_query.o
 
 # alfred flags and options
-CFLAGS += -pedantic -Wall -W -std=gnu99 -fno-strict-aliasing -MD
+CFLAGS += -pedantic -Wall -W -std=gnu99 -fno-strict-aliasing -MD -MP
 LDLIBS += -lrt
 
 # disable verbose output
diff --git a/vis/Makefile b/vis/Makefile
index 8585f9a..9bf72c9 100644
--- a/vis/Makefile
+++ b/vis/Makefile
@@ -23,7 +23,7 @@ BINARY_NAME = vis
 OBJ = vis.o debugfs.o
 
 # alfred flags and options
-CFLAGS += -pedantic -Wall -W -std=gnu99 -fno-strict-aliasing -MD
+CFLAGS += -pedantic -Wall -W -std=gnu99 -fno-strict-aliasing -MD -MP
 LDLIBS += -lrt
 
 # disable verbose output
-- 
1.8.4.rc3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-09-29 20:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-21 14:31 [B.A.T.M.A.N.] [PATCH 1/4] alfred: Don't fail rebuild when header is removed Sven Eckelmann
2013-09-21 14:31 ` [B.A.T.M.A.N.] [PATCH 2/4] alfred: Fix version number for git builds of vis Sven Eckelmann
2013-09-21 14:31 ` [B.A.T.M.A.N.] [PATCH 3/4] alfred: Rename vis to batadv-vis Sven Eckelmann
2013-09-21 14:31 ` [B.A.T.M.A.N.] [PATCH 4/4] alfred: Add manpage stubs Sven Eckelmann
2013-09-29 20:53 ` [B.A.T.M.A.N.] [PATCH 1/4] alfred: Don't fail rebuild when header is removed Simon Wunderlich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox