Also test (un)installing commands

This commit is contained in:
Pierre Pronchery 2018-06-27 03:32:48 +02:00
parent 908c9a715a
commit d1f7aea475
2 changed files with 13 additions and 2 deletions

View File

@ -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

View File

@ -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)