diff options
author | Heikki Kallasjoki <fis@zem.fi> | 2018-12-07 00:17:09 +0000 |
---|---|---|
committer | Heikki Kallasjoki <fis+github@zem.fi> | 2018-12-12 19:10:51 +0000 |
commit | 8569c2c85bec19daa36e013448399c42cf75a257 (patch) | |
tree | 7444488e4e5ae5c98f575a2eafd522c6427ffbdf /Makefile | |
parent | d03dea4d7dbfb62ed0c3c21cdd9ad350f0526432 (diff) | |
download | nano-exporter-8569c2c85bec19daa36e013448399c42cf75a257.tar.gz nano-exporter-8569c2c85bec19daa36e013448399c42cf75a257.tar.xz nano-exporter-8569c2c85bec19daa36e013448399c42cf75a257.zip |
Add a simple test harness and tests for the cpu collector.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile index e770d0d..4245718 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,7 @@ $(shell mkdir -p $(DEPDIR) >/dev/null) DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Td all: $(PROG) +.PHONY: all $(PROG): $(OBJS) $(CC) -o $@ $^ $(LDFLAGS) $(LDLIBS) @@ -54,12 +55,19 @@ main.o: main.c $(DEPDIR)/main.d $(CC) $(DEPFLAGS) $(CFLAGS) $(CPPFLAGS) -DXCOLLECTORS="$(foreach c,$(COLLECTORS),X($(c)))" -c -o $@ $< @mv -f $(DEPDIR)/$*.Td $(DEPDIR)/$*.d && touch $@ +# tests + +.PHONY: test +test: + $(MAKE) -C test run_all + # make clean .PHONY: clean clean: $(RM) $(PROG) $(OBJS) $(RM) -r $(DEPDIR) + $(MAKE) -C test clean # dependencies |