Makefile.in: add missing make depend to pandoc_headers

Noticed missing pgm_options.o prerequisite dependency when built
package in parallel:

    $ make -j16 -l16 -k
    gcc -L. -g -o pandoc_headers pandoc_headers.o pgm_options.o gethopt.o notspecial.o -lmarkdown
    ld: cannot find pgm_options.o: No such file or directory
    collect2: error: ld returned 1 exit status
    make: *** [Makefile:144: pandoc_headers] Error 1
    gcc -I.  -g -fPIC -c pgm_options.c

It's also visible when we try to build a single target:

    $ make pandoc_headers
    <same failure>

The change adds $(COMMON) dependency used during linking
in pandoc_headers.
This commit is contained in:
Sergei Trofimovich
2021-10-21 18:21:59 +01:00
parent 618fdc5d5e
commit c00ad392bf
+1 -1
View File
@@ -140,7 +140,7 @@ test: $(PGMS) $(TESTFRAMEWORK) verify
pandoc_headers.o: tools/pandoc_headers.c config.h
$(BUILD) -c -o pandoc_headers.o tools/pandoc_headers.c
pandoc_headers: pandoc_headers.o $(MKDLIB)
pandoc_headers: pandoc_headers.o $(COMMON) $(MKDLIB)
$(LINK) -o pandoc_headers pandoc_headers.o $(COMMON) -lmarkdown
branch.o: tools/branch.c config.h