Commit a8276f53 authored by Mike Frysinger's avatar Mike Frysinger Committed by Chris Ball
Browse files

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: default avatarMike Frysinger <vapier@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/179621

Reviewed-by: default avatarGrant Grundler <grundler@chromium.org>
Signed-off-by: default avatarChris Ball <chris@printf.net>
parent 11f2ceab
...@@ -34,15 +34,17 @@ mmc: $(objects) ...@@ -34,15 +34,17 @@ mmc: $(objects)
$(CC) $(CFLAGS) -o $@ $(objects) $(LDFLAGS) $(LIBS) $(CC) $(CFLAGS) -o $@ $(objects) $(LDFLAGS) $(LIBS)
manpages: manpages:
cd man && make $(MAKE) -C man
install-man: install-man:
cd man && make install $(MAKE) -C man install
clean: clean:
rm -f $(progs) $(objects) rm -f $(progs) $(objects)
cd man && make clean $(MAKE) -C man clean
install: $(progs) install-man install: $(progs) install-man
$(INSTALL) -m755 -d $(DESTDIR)$(bindir) $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
$(INSTALL) $(progs) $(DESTDIR)$(bindir) $(INSTALL) $(progs) $(DESTDIR)$(bindir)
.PHONY: all clean install manpages install-man
all: all:
clean: clean:
install:
.PHONY: all clean install
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment