1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +02:00

Makefile: force rebuilding tests when Makefile changed

Signed-off-by: Kai Krakow <kai@kaishome.de>
This commit is contained in:
Kai Krakow 2018-01-19 21:13:23 +01:00 committed by Zygo Blaxell
parent ca1a3bed12
commit 63f249f005

View File

@ -9,7 +9,7 @@ PROGRAMS = \
all: test
test: $(PROGRAMS)
test: $(PROGRAMS) Makefile
set -x; for prog in $(PROGRAMS); do ./$$prog || exit 1; done
include ../makeflags
@ -27,11 +27,11 @@ depends.mk: $(PROGRAMS:%=.depends/%.dep)
include depends.mk
%.o: %.cc %.h ../makeflags
%.o: %.cc %.h ../makeflags Makefile
@echo "Implicit rule %.o: %.cc"
$(CXX) $(CXXFLAGS) -o $@ -c $<
%: %.o ../makeflags
%: %.o ../makeflags Makefile
@echo "Implicit rule %: %.o"
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)