Add clean make target
This commit is contained in:
parent
7f6037855d
commit
e027f3c7e6
5 changed files with 26 additions and 5 deletions
8
Makefile
8
Makefile
|
@ -7,12 +7,15 @@ export INSTALL_DATA = $(INSTALL) -m 644
|
|||
dirs = doc src gitto zsh
|
||||
install-dirs = $(addprefix install-,$(dirs))
|
||||
uninstall-dirs = $(addprefix uninstall-,$(dirs))
|
||||
clean-dirs = $(addprefix clean-,$(dirs))
|
||||
|
||||
.PHONY: all $(dirs) install $(install-dirs) uninstall $(uninstall-dirs)
|
||||
.PHONY: all $(dirs) install $(install-dirs) uninstall $(uninstall-dirs) \
|
||||
clean $(clean-dirs)
|
||||
|
||||
all: $(dirs)
|
||||
install: $(install-dirs)
|
||||
uninstall: $(uninstall-dirs)
|
||||
clean: $(clean-dirs)
|
||||
|
||||
$(dirs):
|
||||
$(MAKE) -C $@/
|
||||
|
@ -22,3 +25,6 @@ $(install-dirs): install-%:
|
|||
|
||||
$(uninstall-dirs): uninstall-%:
|
||||
$(MAKE) -C $*/ uninstall
|
||||
|
||||
$(clean-dirs): clean-%:
|
||||
$(MAKE) -C $*/ clean
|
||||
|
|
|
@ -4,7 +4,7 @@ TEXI2PDF = texi2pdf
|
|||
DVIPS = dvips
|
||||
|
||||
.PHONY: all html dvi pdf ps install uninstall install-dvi install-pdf \
|
||||
install-ps
|
||||
install-ps clean
|
||||
|
||||
all: gitto.info
|
||||
|
||||
|
@ -51,3 +51,9 @@ gitto.pdf: gitto.texi
|
|||
|
||||
gitto.ps: gitto.dvi
|
||||
$(DVIPS) gitto.dvi
|
||||
|
||||
clean:
|
||||
rm -f gitto.aux gitto.cp gitto.dvi gitto.fn gitto.fns gitto.info \
|
||||
gitto.ky gitto.log gitto.pdf gitto.pg gitto.ps gitto.toc \
|
||||
gitto.tp gitto.vr gitto.vrs
|
||||
rm -rf html/
|
||||
|
|
|
@ -8,7 +8,8 @@ objects = config.scm config.go git.scm git.go ui.scm ui.go main.scm \
|
|||
install-objects = $(addprefix install-,$(objects))
|
||||
uninstall-objects = $(addprefix uninstall-,$(objects))
|
||||
|
||||
.PHONY: all install $(install-objects) uninstall $(uninstall-objects)
|
||||
.PHONY: all install $(install-objects) uninstall $(uninstall-objects) \
|
||||
clean
|
||||
|
||||
all: $(filter %.go,$(objects))
|
||||
|
||||
|
@ -29,3 +30,6 @@ $(filter %.go,$(uninstall-objects)): uninstall-%:
|
|||
|
||||
$(filter %.scm,$(uninstall-objects)): uninstall-%:
|
||||
rm -f "$(SITEDIR)/gitto/$*"
|
||||
|
||||
clean:
|
||||
rm -f *.go
|
||||
|
|
|
@ -8,7 +8,7 @@ objects = gitto-path.o
|
|||
|
||||
all: libguile-gitto-path.so
|
||||
|
||||
.PHONY: install uninstall
|
||||
.PHONY: install uninstall clean
|
||||
|
||||
%.x: %.c
|
||||
guile-snarf -o $@ $< $(CFLAGS)
|
||||
|
@ -26,3 +26,6 @@ install: install-gitto install-libguile-gitto-path
|
|||
uninstall:
|
||||
rm -f ${DESTDIR}/bin/gitto
|
||||
rm -f ${EXTDIR}/libguile-gitto-path.so
|
||||
|
||||
clean:
|
||||
rm -f *.o *.x *.so
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
DESTDIR ?= /usr/local
|
||||
|
||||
.PHONY: all install uninstall
|
||||
.PHONY: all install uninstall clean
|
||||
|
||||
all:
|
||||
|
||||
|
@ -9,3 +9,5 @@ install:
|
|||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)/share/zsh/site-functions/_gitto
|
||||
|
||||
clean:
|
||||
|
|
Loading…
Reference in a new issue