[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug report
From: |
Goran V. |
Subject: |
bug report |
Date: |
Wed, 03 Mar 2021 17:31:51 +0100 |
User-agent: |
Evolution 3.36.4-0ubuntu1 |
I wrote a makefile with
$(BUILD)/$(FRONTEND)/%.html \
$(BUILD)/$(FRONTEND)/%.js \
$(BUILD)/$(FRONTEND)/%.css \
$(BUILD)/$(FRONTEND)/%.svg \
$(BUILD)/$(FRONTEND)/%.ico:
@echo -n "$(FRONTEND) - building $@"
@$(MD) $(BUILD)/$(FRONTEND)
@cp $(FRONTEND)/$(@F) $@
@echo " ...done"
.PHONY:
login: $(BUILD)/$(FRONTEND)/login.html \
$(BUILD)/$(FRONTEND)/login.js $(BUILD)/$(FRONTEND)/options.js
$(BUILD)/$(FRONTEND)/node.js \
$(BUILD)/$(FRONTEND)/login.css $(BUILD)/$(FRONTEND)/common.css \
$(BUILD)/$(FRONTEND)/logo.svg \
$(BUILD)/$(FRONTEND)/favicon.ico
@echo -n "$(FRONTEND) - building login"
@echo " ...done"
I get no errors but only if I repeat the command 3 times (3 files with
same prefix) I got the result.
q@odysseus:~/ff$ make login
frontend - building build/frontend/login.html ...done
frontend - building build/frontend/options.js ...done
frontend - building build/frontend/node.js ...done
frontend - building build/frontend/common.css ...done
frontend - building build/frontend/logo.svg ...done
frontend - building build/frontend/favicon.ico ...done
frontend - building login ...done
q@odysseus:~/ff$ make login
frontend - building build/frontend/login.js ...done
frontend - building login ...done
q@odysseus:~/ff$ make login
frontend - building build/frontend/login.css ...done
frontend - building login ...done
With help and instructions from ##workingsets I got further to
make -k -d login
Successfully remade target file `build/foo/login.html'.
Considering target file `build/foo/login.js'.
File `build/foo/login.js' was considered already.
but `build/foo/login.js' was NOT considered already.
Any hints? Is this a feature or a bug?
Thanks
Goran