X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=Makefile;h=e3cfbd2b70ad3b69b36df57e770fcd2029133532;hb=refs%2Ftags%2Fv0.3;hp=46b3d7b7e90c9af569410d274d8f864360919bd0;hpb=2eab39a6585392e139b1c4bbc6e6ec7671627e99;p=CleanReadLine.git diff --git a/Makefile b/Makefile index 46b3d7b..e3cfbd2 100644 --- 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: - $(RM) -v test Clean\ System\ Files/{ReadLine,test}.* + $(MAKE) -C $(LIBRARYDIR) clean + $(RM) -v $(BINARIES) + $(RM) -v $(addprefix $(LIBRARYDIR)/,$(addsuffix .*,$(BINARIES)))