Also test (un)installing commands
This commit is contained in:
parent
908c9a715a
commit
d1f7aea475
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user