From 0f2ac0c4311e4429bfa4ede1d96ce467b5dceb5b Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 5 Jan 2023 10:37:41 +0100 Subject: Added tests --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 18725c8..391c626 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ PROGSRC=\ file.cpp \ mime.cpp \ os.cpp \ - stringutil.cpp \ + stringhelper.cpp \ tempfile.cpp \ url.cpp @@ -50,6 +50,8 @@ install: $(PROJECTNAME).a: $(SRC:.cpp=.o) ar rcs $@ $^ +dep: $(SRC:.cpp=.d) + %.d: %.cpp $(CXX) $(CXXFLAGS) -MM -MP -MF $@ -c $< @@ -68,6 +70,9 @@ $(DISTROS): deb-src sudo pbuilder build --basetgz /var/cache/pbuilder/$@.tgz --buildresult result/$@ ../libreichwein_$(VERSION).dsc -debsign result/$@/libreichwein_$(VERSION)_amd64.changes +test: + $(MAKE) -C tests + # dependencies ADD_DEP=Makefile @@ -75,7 +80,8 @@ ADD_DEP=Makefile # misc --------------------------------------------------- clean: -rm -f *.o *.a *.d $(SONAME1) $(SONAME2) $(SONAME3) + $(MAKE) -C tests clean -.PHONY: clean all install +.PHONY: clean all install test -include $(wildcard $(SRC:.cpp=.d)) -- cgit v1.2.3