mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
correctly extract name of module from pwd, correct problem with make dist
This commit is contained in:
parent
333aeb50a2
commit
5008e1e67b
3
Rules.mk
3
Rules.mk
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
OBJS = $(patsubst %.S,%.o,$(SOURCES:.c=.o))
|
OBJS = $(patsubst %.S,%.o,$(SOURCES:.c=.o))
|
||||||
|
|
||||||
MODULE ?= $(basename $(TOP))
|
MODULE ?= $(shell basename $(TOP))
|
||||||
|
|
||||||
DISTFILES ?= $(SOURCES) $(HEADERS) $(MANPAGES) Makefile
|
DISTFILES ?= $(SOURCES) $(HEADERS) $(MANPAGES) Makefile
|
||||||
|
|
||||||
@ -17,6 +17,7 @@ $(LIBRARY): $(LIBRARY)($(patsubst %.S,%.o,$(SOURCES:.c=.o)))
|
|||||||
gzip -9c $< > $@
|
gzip -9c $< > $@
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
|
echo "MODULE [$(MODULE)]"
|
||||||
for file in $(DISTFILES); do \
|
for file in $(DISTFILES); do \
|
||||||
dir=$$(dirname $$file); \
|
dir=$$(dirname $$file); \
|
||||||
if [ "$$dir" != "" ] ; then \
|
if [ "$$dir" != "" ] ; then \
|
||||||
|
Loading…
Reference in New Issue
Block a user