From a1cde11d5ebe95a365120eb5aeb7f65469e44b30 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 3 Apr 2023 22:07:04 -0500 Subject: Changes and stuff I have done a bad job of documenting what I'm doing - it builds now - run `make` - it builds the pages in test/ and links them - ... that's it --- Makefile | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 506d366..1dd66d1 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,28 @@ # wikme PREFIX = /usr/bin -CSC = csc -I$(PWD) +CSC = csc -R r7rs -OBJ = wikme.scm.o +NAME = wikme +PROG = $(NAME).scm +SOURCE = $(NAME).ss +LIB = $(NAME).sld +OBJ = $(NAME)-lib.o -wikme: main.scm $(OBJ) - $(CSC) -o $@ $(OBJ) -uses wikme main.scm +$(NAME): $(PROG) $(OBJ) + $(CSC) -o $@ $(OBJ) -uses $(NAME) $(PROG) -$(OBJ): wikme.scm wikme-impl.scm - $(CSC) -c -J wikme.scm -unit wikme -o $@ +$(OBJ): $(LIB) + $(CSC) -c -J $(LIB) -unit $(NAME) -o $@ -.PHONY: install clean +$(LIB): $(SOURCE) -install: wikme - install -Dt $(DESTDIR)$(PREFIX)/$@ $< +.PHONY: install test clean + +install: $(NAME) + install -Dt $(DESTDIR)$(PREFIX)/$@ $(NAME) + +test: # TODO clean: rm -f *.import.scm *.so *.o -- cgit 1.4.1-21-gabe81