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
|
RM = rm -f
|
||||||
LN = ln -f
|
LN = ln -f
|
||||||
MKDIR = mkdir -m 0755 -p
|
MKDIR = mkdir -m 0755 -p
|
||||||
@ -13,6 +13,9 @@ phony:
|
|||||||
target:
|
target:
|
||||||
$(MAKE) command
|
$(MAKE) command
|
||||||
|
|
||||||
|
xinstall:
|
||||||
|
$(MAKE) command
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) --
|
$(RM) --
|
||||||
|
|
||||||
@ -20,7 +23,10 @@ distclean: clean
|
|||||||
$(RM) -- $(TARGETS)
|
$(RM) -- $(TARGETS)
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
|
$(MKDIR) $(DESTDIR)$(PREFIX)
|
||||||
|
$(INSTALL) -m 0644 $(OBJDIR)xinstall $(DESTDIR)$(PREFIX)/xinstall
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
|
$(RM) -- $(DESTDIR)$(PREFIX)/xinstall
|
||||||
|
|
||||||
.PHONY: all clean distclean install uninstall phony
|
.PHONY: all clean distclean install uninstall phony
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
targets=phony,target
|
targets=phony,target,xinstall
|
||||||
dist=Makefile
|
dist=Makefile
|
||||||
|
|
||||||
[phony]
|
[phony]
|
||||||
@ -9,3 +9,8 @@ phony=1
|
|||||||
[target]
|
[target]
|
||||||
type=command
|
type=command
|
||||||
command=$(MAKE) command
|
command=$(MAKE) command
|
||||||
|
|
||||||
|
[xinstall]
|
||||||
|
type=command
|
||||||
|
command=$(MAKE) command
|
||||||
|
install=$(PREFIX)
|
||||||
|
Loading…
Reference in New Issue
Block a user