summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-05 10:37:41 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-05 10:37:41 +0100
commit0f2ac0c4311e4429bfa4ede1d96ce467b5dceb5b (patch)
treeb4dbe07617ca818b182a18f27d0d4e6bafc91841 /Makefile
parent0c0d858e4f9423fb9697bad9a012cb67fcee75e0 (diff)
Added tests
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
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))