]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Makefile: Fix pattern rules
authorDaniel Wagner <dwagner@suse.de>
Mon, 27 Sep 2021 13:58:08 +0000 (15:58 +0200)
committerDaniel Wagner <dwagner@suse.de>
Mon, 27 Sep 2021 14:00:53 +0000 (16:00 +0200)
The pattern rules can't have additional dependency as input. make skips
the rule and falls back to use the build in rule, which accidentally
works.. Drop the non-functional dependency list.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Makefile

index 5fbdfd0bf697e37fabfb7f4bdf3923e754d121f5..2410a2eeb433267e30816cff5999a1746b667ee0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -107,10 +107,7 @@ verify-no-dep: nvme.c nvme.h $(OBJS) $(UTIL_OBJS) NVME-VERSION-FILE
 nvme.o: nvme.c nvme.h nvme-print.h util/argconfig.h util/suffix.h fabrics.h
        $(QUIET_CC)$(CC) $(CPPFLAGS) $(CFLAGS) $(INC) -c $<
 
-%.o: %.c %.h nvme.h linux/nvme.h nvme-print.h util/argconfig.h
-       $(QUIET_CC)$(CC) $(CPPFLAGS) $(CFLAGS) $(INC) -o $@ -c $<
-
-%.o: %.c nvme.h linux/nvme.h nvme-print.h util/argconfig.h
+%.o: %.c
        $(QUIET_CC)$(CC) $(CPPFLAGS) $(CFLAGS) $(INC) -o $@ -c $<
 
 doc: $(NVME)