diff --git a/Makefile b/Makefile index 1dc9a9c..d4c3359 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ RM = rm -f RM = rm -f LN = ln -f TAR = tar +MKDIR = mkdir -m 0755 -p all: subdirs diff --git a/tests/Makefile b/tests/Makefile index aebb8ff..76b3a9f 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,4 +1,5 @@ -TARGETS = tests.log +TARGETS = $(OBJDIR)tests.log +OBJDIR = PREFIX = /usr/local DESTDIR = RM = rm -f @@ -9,8 +10,8 @@ INSTALL = install all: $(TARGETS) -tests.log: ../src/configure library/project.conf library/Makefile.Darwin library/Makefile.NetBSD plugin/Makefile.Darwin plugin/Makefile.NetBSD tests.sh - ./tests.sh -P "$(PREFIX)" -- "tests.log" +$(OBJDIR)tests.log: ../src/configure library/project.conf library/Makefile.Darwin library/Makefile.NetBSD plugin/Makefile.Darwin plugin/Makefile.NetBSD tests.sh + ./tests.sh -P "$(PREFIX)" -- "$(OBJDIR)tests.log" clean: $(RM) -- $(tests.log_OBJS)