repositories
/
CleanReadLine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 0.3
[CleanReadLine.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
46b3d7b
..
e3cfbd2
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,11
+1,19
@@
-SHELL:=/bin/bash
-CLM=clm
-CLMFLAGS=-nt -l -lreadline
+CLM:=clm
+CLMFLAGS:=-nt -l -lreadline
+LIBRARYDIR:=Clean\ System\ Files
+BINARIES:=test
-all: test
+.PHONY: readline clean
+
+all: readline $(BINARIES)
+
+readline:
+ $(MAKE) -C $(LIBRARYDIR)
%: %.icl
$(CLM) $(CLMFLAGS) $(basename $<) -o $@
clean:
%: %.icl
$(CLM) $(CLMFLAGS) $(basename $<) -o $@
clean:
- $(RM) -v test Clean\ System\ Files/{ReadLine,test}.*
+ $(MAKE) -C $(LIBRARYDIR) clean
+ $(RM) -v $(BINARIES)
+ $(RM) -v $(addprefix $(LIBRARYDIR)/,$(addsuffix .*,$(BINARIES)))