]> sourceware.org Git - lvm2.git/commitdiff
makefiles: fix man-generate rule
authorZdenek Kabelac <zkabelac@redhat.com>
Sun, 28 Feb 2021 00:17:31 +0000 (01:17 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 2 Mar 2021 21:54:40 +0000 (22:54 +0100)
Symlink and compiled man-generate binary has to go to builddir.

tools/Makefile.in

index dce85726b5aa41f2a69b54777bd9fc49f86e78eb..c89c75fa5cfa77cba349177691c768a75785c9a4 100644 (file)
@@ -128,13 +128,13 @@ lvm: $(OBJECTS) lvm.o $(LVMINTERNAL_LIBS)
 
 DEFS_man-generator.o += -DMAN_PAGE_GENERATOR
 
-man-generator.c: command.c
+man-generator.c: $(srcdir)/command.c
        @echo "    [LN] $@"
-       $(Q) $(LN_S) -f $< $@
+       $(Q) $(LN_S) -f $< $(@F)
 
 man-generator: man-generator.o
        @echo "    [CC] $@"
-       $(Q) $(CC) $(CFLAGS) -o $@ $<
+       $(Q) $(CC) $(CFLAGS) -o $@ $(<F)
 
 lvm.static: $(OBJECTS) lvm-static.o $(LVMINTERNAL_LIBS)
        @echo "    [CC] $@"
This page took 0.033719 seconds and 5 git commands to generate.