Skip to contentSkip to conversation

1/2] fix make handling

PATCH New Mike Frysinger 1 participant 2 messages Dec 13, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 1/2] fix make handling

From: Mike Frysinger <[email protected]>

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.

---
 Makefile     | 8 +++++---
 man/Makefile | 3 +++
 2 files changed, 8 insertions(+), 3 deletions(-)
Makefile +5 -3
index ae846e2..91cfc35 100644
@@ -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
man/Makefile +3 -0
index c8957f6..da79a50 100644
@@ -1,2 +1,5 @@
 all: 
 clean: 
+install:
+
+.PHONY: all clean install
Signature · 1 line
1.8.4.3
#1 lore raw

PATCH 1/1 2/2] start a README

---
 README | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 README
README new file +12 -0
new file mode 100644
index 0000000..e7d5210
@@ -0,0 +1,12 @@
+Userspace tools for MMC/SD devices
+
+Useful for doing things like updating firmware or poking registers in the
+MMC/SD card itself.
+
+Upstream git repo:
+	https://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git/
+	git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git
+
+Mailing list:
+	[email protected]
+	http://vger.kernel.org/vger-lists.html#linux-mmc
Signature · 1 line
1.8.4.3