correctly extract name of module from pwd, correct problem with make dist

This commit is contained in:
Laurent Vivier 2005-11-30 00:15:14 +00:00
parent 333aeb50a2
commit 5008e1e67b

View File

@ -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 \