HAVE_PERLDOC = @HAVE_PERLDOC@
TOOLS = uname dmesg ps
+export TOOLS
+
+SUBDIRS_NOT_PO = lib $(TOOLS) mem
+SUBDIRS = $(SUBDIRS_NOT_PO) po
ifeq ($(HAVE_PERLDOC),perldoc)
MANPAGES = virt-mem.1 $(TOOLS:%=virt-%.1)
TARGETS = $(MANPAGES) $(TEXTMANPAGES)
all: $(TARGETS)
- for d in lib $(TOOLS) po; do \
+ for d in $(SUBDIRS); do \
$(MAKE) -C $$d $@; \
if [ $$? -ne 0 ]; then exit 1; fi; \
done
install: install-man
- for d in lib $(TOOLS) po; do \
+ for d in $(SUBDIRS); do \
$(MAKE) -C $$d $@; \
if [ $$? -ne 0 ]; then exit 1; fi; \
done
depend doc:
- for d in lib $(TOOLS); do \
+ for d in $(SUBDIRS_NOT_PO); do \
$(MAKE) -C $$d $@; \
if [ $$? -ne 0 ]; then exit 1; fi; \
done
clean:
- for d in . lib $(TOOLS); do \
+ for d in . $(SUBDIRS); do \
(cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a \
*.so *.opt *~ *.dll *.exe *.annot core); \
done
- for d in po; do \
- (cd $$d; rm -f *~); \
- done
rm -f uname/virt-uname
rm -f dmesg/virt-dmesg
rm -f ps/virt-ps
+ rm -f mem/virt-mem
distclean: clean
rm -f config.h config.log config.status configure
rm -rf autom4te.cache
rm -f Makefile
- rm -f virt-df/Makefile
+ rm -f */Makefile
# Manual page.