mirror of
https://github.com/Zygo/bees.git
synced 2025-05-18 05:45:45 +02:00
Makefile: force rebuilding tests when Makefile changed
Signed-off-by: Kai Krakow <kai@kaishome.de>
This commit is contained in:
parent
ca1a3bed12
commit
63f249f005
@ -9,7 +9,7 @@ PROGRAMS = \
|
|||||||
|
|
||||||
all: test
|
all: test
|
||||||
|
|
||||||
test: $(PROGRAMS)
|
test: $(PROGRAMS) Makefile
|
||||||
set -x; for prog in $(PROGRAMS); do ./$$prog || exit 1; done
|
set -x; for prog in $(PROGRAMS); do ./$$prog || exit 1; done
|
||||||
|
|
||||||
include ../makeflags
|
include ../makeflags
|
||||||
@ -27,11 +27,11 @@ depends.mk: $(PROGRAMS:%=.depends/%.dep)
|
|||||||
|
|
||||||
include depends.mk
|
include depends.mk
|
||||||
|
|
||||||
%.o: %.cc %.h ../makeflags
|
%.o: %.cc %.h ../makeflags Makefile
|
||||||
@echo "Implicit rule %.o: %.cc"
|
@echo "Implicit rule %.o: %.cc"
|
||||||
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
%: %.o ../makeflags
|
%: %.o ../makeflags Makefile
|
||||||
@echo "Implicit rule %: %.o"
|
@echo "Implicit rule %: %.o"
|
||||||
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
|
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user