From d1f7aea4750105e78e3a4a12737a9400517370e0 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 27 Jun 2018 03:32:48 +0200 Subject: [PATCH] Also test (un)installing commands --- tests/command/Makefile.NetBSD | 8 +++++++- tests/command/project.conf | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/tests/command/Makefile.NetBSD b/tests/command/Makefile.NetBSD index d4a2f5b..4578edd 100644 --- a/tests/command/Makefile.NetBSD +++ b/tests/command/Makefile.NetBSD @@ -1,4 +1,4 @@ -TARGETS = phony target +TARGETS = phony target xinstall RM = rm -f LN = ln -f MKDIR = mkdir -m 0755 -p @@ -13,6 +13,9 @@ phony: target: $(MAKE) command +xinstall: + $(MAKE) command + clean: $(RM) -- @@ -20,7 +23,10 @@ distclean: clean $(RM) -- $(TARGETS) install: all + $(MKDIR) $(DESTDIR)$(PREFIX) + $(INSTALL) -m 0644 $(OBJDIR)xinstall $(DESTDIR)$(PREFIX)/xinstall uninstall: + $(RM) -- $(DESTDIR)$(PREFIX)/xinstall .PHONY: all clean distclean install uninstall phony diff --git a/tests/command/project.conf b/tests/command/project.conf index fde9982..0beede8 100644 --- a/tests/command/project.conf +++ b/tests/command/project.conf @@ -1,4 +1,4 @@ -targets=phony,target +targets=phony,target,xinstall dist=Makefile [phony] @@ -9,3 +9,8 @@ phony=1 [target] type=command command=$(MAKE) command + +[xinstall] +type=command +command=$(MAKE) command +install=$(PREFIX)