mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Add cleandir target.
Using non-recursive cleandir target for resursive distclean and clean. Avoids duplicated clean invocation during distclean. Indent $(RM) parameters.
This commit is contained in:
parent
9a62f0d59a
commit
7cbd4a743e
14
make.tmpl.in
14
make.tmpl.in
@ -144,8 +144,8 @@ DEPS = $(top_builddir)/make.tmpl $(top_srcdir)/VERSION \
|
|||||||
OBJECTS = $(SOURCES:%.c=%.o)
|
OBJECTS = $(SOURCES:%.c=%.o)
|
||||||
POTFILES = $(SOURCES:%.c=%.pot)
|
POTFILES = $(SOURCES:%.c=%.pot)
|
||||||
|
|
||||||
.PHONY: all install install_cluster pofile distclean clean cflow device-mapper
|
.PHONY: all pofile distclean clean cleandir cflow device-mapper
|
||||||
.PHONY: install_device-mapper install_lvm2
|
.PHONY: install install_cluster install_device-mapper install_lvm2
|
||||||
.PHONY: $(SUBDIRS) $(SUBDIRS.install) $(SUBDIRS.clean) $(SUBDIRS.distclean)
|
.PHONY: $(SUBDIRS) $(SUBDIRS.install) $(SUBDIRS.clean) $(SUBDIRS.distclean)
|
||||||
.PHONY: $(SUBDIRS.pofile) $(SUBDIRS.install_cluster) $(SUBDIRS.cflow)
|
.PHONY: $(SUBDIRS.pofile) $(SUBDIRS.install_cluster) $(SUBDIRS.cflow)
|
||||||
.PHONY: $(SUBDIRS.device-mapper) $(SUBDIRS.install-device-mapper)
|
.PHONY: $(SUBDIRS.device-mapper) $(SUBDIRS.install-device-mapper)
|
||||||
@ -300,12 +300,14 @@ $(LIB_STATIC): $(OBJECTS)
|
|||||||
%.mo: %.po
|
%.mo: %.po
|
||||||
$(MSGFMT) -o $@ $<
|
$(MSGFMT) -o $@ $<
|
||||||
|
|
||||||
clean: $(SUBDIRS.clean)
|
cleandir:
|
||||||
$(RM) $(OBJECTS) $(TARGETS) $(CLEAN_TARGETS) $(CLEAN_CFLOW) $(LDDEPS) \
|
$(RM) $(OBJECTS) $(TARGETS) $(CLEAN_TARGETS) $(CLEAN_CFLOW) $(LDDEPS) \
|
||||||
$(POTFILES) $(SOURCES:%.c=%.d) $(SOURCES:%.c=%.gcno) $(SOURCES:%.c=%.gcda) \
|
$(POTFILES) $(SOURCES:%.c=%.d) $(SOURCES:%.c=%.gcno) $(SOURCES:%.c=%.gcda) \
|
||||||
$(SOURCES2:%.c=%.o) $(SOURCES2:%.c=%.d) $(SOURCES2:%.c=%.gcno) $(SOURCES2:%.c=%.gcda)
|
$(SOURCES2:%.c=%.o) $(SOURCES2:%.c=%.d) $(SOURCES2:%.c=%.gcno) $(SOURCES2:%.c=%.gcda)
|
||||||
|
|
||||||
distclean: clean $(SUBDIRS.distclean)
|
clean: $(SUBDIRS.clean) cleandir
|
||||||
|
|
||||||
|
distclean: cleandir $(SUBDIRS.distclean)
|
||||||
test -z "$(DISTCLEAN_DIRS)" || $(RM) -r $(DISTCLEAN_DIRS)
|
test -z "$(DISTCLEAN_DIRS)" || $(RM) -r $(DISTCLEAN_DIRS)
|
||||||
$(RM) $(DISTCLEAN_TARGETS) Makefile core
|
$(RM) $(DISTCLEAN_TARGETS) Makefile core
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user