3 ms·
Sometimes you can make mistakes which delete files, but you should keep development files backed up in some capacity. Still, spot the bug here: AS_SRC = ma
by leggomylibro 7y ago
Sometimes you can make mistakes which delete files, but you should keep development files backed up in some capacity. Still, spot the bug here:
AS_SRC = main.S util.s
OBJ = $(AS_SRC: .S=.o)
[...]
clean:
rm -f $(OBJ)
- rootlocus 7y agoWhatever the bug, git reset is the solution.
- kd5bjo 7y agoThe source files with a lower-case extension aren’t getting their file names translated and are passed straight through into OBJ unchanged. Granted, knowing that there’s an error here helped greatly in spotting it; there’s a good chance I would have run the incorrect makefile at least once before investigating.