From 5008e1e67b0cc08442ec595bdebc31ec1526a6d3 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Wed, 30 Nov 2005 00:15:14 +0000 Subject: [PATCH] correctly extract name of module from pwd, correct problem with make dist --- Rules.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rules.mk b/Rules.mk index 1efb128..8653417 100644 --- a/Rules.mk +++ b/Rules.mk @@ -4,7 +4,7 @@ OBJS = $(patsubst %.S,%.o,$(SOURCES:.c=.o)) -MODULE ?= $(basename $(TOP)) +MODULE ?= $(shell basename $(TOP)) DISTFILES ?= $(SOURCES) $(HEADERS) $(MANPAGES) Makefile @@ -17,6 +17,7 @@ $(LIBRARY): $(LIBRARY)($(patsubst %.S,%.o,$(SOURCES:.c=.o))) gzip -9c $< > $@ dist: + echo "MODULE [$(MODULE)]" for file in $(DISTFILES); do \ dir=$$(dirname $$file); \ if [ "$$dir" != "" ] ; then \