summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2013-12-11 14:33:28 -0500
committerChris Ball <chris@printf.net>2014-01-23 14:24:41 -0500
commita8276f539b27bee8868ecc210b987930c31a05e0 (patch)
tree4d0b06e7473646ae0236c1cf978646594f6dda18
parent11f2ceabc4ad3f0dd568e0ce68166e4803e0615b (diff)
downloadmmc-utils-a8276f539b27bee8868ecc210b987930c31a05e0.tar.gz
fix make handling
Fix the recurisve make targets by using $(MAKE). Otherwise we get lots of warnings and issues with parallel builds. Fix the install target -- the man subdir was missing a dummy target. Add proper .PHONY markings. Change-Id: I640d42af0bdf96baf6ff0ca022fd3f7f444b2d05 Signed-off-by: Mike Frysinger <vapier@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/179621 Reviewed-by: Grant Grundler <grundler@chromium.org> Signed-off-by: Chris Ball <chris@printf.net>
-rw-r--r--Makefile8
-rw-r--r--man/Makefile3
2 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ae846e2..91cfc35 100644
--- a/Makefile
+++ b/Makefile
@@ -34,15 +34,17 @@ mmc: $(objects)
$(CC) $(CFLAGS) -o $@ $(objects) $(LDFLAGS) $(LIBS)
manpages:
- cd man && make
+ $(MAKE) -C man
install-man:
- cd man && make install
+ $(MAKE) -C man install
clean:
rm -f $(progs) $(objects)
- cd man && make clean
+ $(MAKE) -C man clean
install: $(progs) install-man
$(INSTALL) -m755 -d $(DESTDIR)$(bindir)
$(INSTALL) $(progs) $(DESTDIR)$(bindir)
+
+.PHONY: all clean install manpages install-man
diff --git a/man/Makefile b/man/Makefile
index c8957f6..da79a50 100644
--- a/man/Makefile
+++ b/man/Makefile
@@ -1,2 +1,5 @@
all:
clean:
+install:
+
+.PHONY: all clean install