pdflatex-makefile icon indicating copy to clipboard operation
pdflatex-makefile copied to clipboard

Mixed Implicit and Normal Rule error

Open ktiwari9 opened this issue 6 years ago • 5 comments

Hi there,

First of all, thank you for the amazing makefile. I am trying to learn to use it and adapt it for my project. I get the following error: Makefile.include:126: *** mixed implicit and normal rules: deprecated syntax which is generated because of the following line:

$(FIGS)/%.pdf: $(FIGS)/%.svg  ## Figures for the manuscript

Not sure how to fix it.

ktiwari9 avatar Jan 31 '19 12:01 ktiwari9

I've never seen that. What does make --version say?

ransford avatar Jan 31 '19 18:01 ransford

It says:

GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

ktiwari9 avatar Jan 31 '19 18:01 ktiwari9

I think it's complaining about the ## ... comment. If you remove that comment from that line, does the error go away?

ransford avatar Jan 31 '19 23:01 ransford

Nope. I tried. It still complains about this line : $(FIGS)/%.pdf: $(FIGS)/%.svg

ktiwari9 avatar Feb 01 '19 07:02 ktiwari9

OK. It will take me a little time to reproduce this, since GNU Make 3.x doesn't seem to tickle this bug.

ransford avatar Feb 02 '19 22:02 ransford

Bro I also encountered this problem about :$(OBJ_OUT_DIR)/%.o: $(CUR_DIR)/%.c

mio22440 avatar Oct 04 '22 14:10 mio22440

There's almost certainly a space in a directory name in $(FIGS) (or in the case of the most recent comment, $(OBJ_OUT_DIR)). Try renaming component directories so that they don't have spaces in their names.

ransford avatar Oct 11 '22 03:10 ransford