Ça, c'est la règle pour le faire à la main. Je voudrais plutôt un truc du genre :
mon_executable: $(OBJS) $(LDFLAGS)
pour indiquer à make qu'il doit reconstruire 'mon_executable' si LD_FLAGS change. Mais je ne sais pas faire ça sans avoir à mettre LDFLAGS dans un fichier à part.
[^] # Re: make ?
Posté par Bruno Michel (site web personnel) . En réponse à la dépêche Redo, un remplaçant de choix pour Make. Évalué à 2.
mon_executable: $(OBJS) $(LDFLAGS)pour indiquer à make qu'il doit reconstruire 'mon_executable' si LD_FLAGS change. Mais je ne sais pas faire ça sans avoir à mettre LDFLAGS dans un fichier à part.