From 993d1b618c384c4e2ad27da9fca0e1357ef9c906 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 29 Jul 2015 21:41:33 -0400 Subject: [PATCH] Added some incremental install directives --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index e45e30ac..2352ec83 100644 --- a/Makefile +++ b/Makefile @@ -98,6 +98,16 @@ clean: rm -rf a.out *.o *.so *.a *.out tags cyclone icyc scheme/*.o scheme/*.c scheme/cyclone/*.o scheme/cyclone/*.c dispatch.c icyc.c generate-c.c generate-c $(foreach f,$(TESTSCM), rm -rf $(f) $(f).c tests/$(f).c;) +install-includes: + $(MKDIR) $(DESTDIR)$(INCDIR) + $(INSTALL) -m0644 include/cyclone/*.h $(DESTDIR)$(INCDIR)/ + +install-libs: + $(MKDIR) $(DESTDIR)$(LIBDIR) + $(INSTALL) -m0644 libcyclone.a $(DESTDIR)$(LIBDIR)/ + +# TODO: rewrite install to be in terms of incremental steps above. +# also want to propagate this change to cyclone-bootstrap install: $(MKDIR) $(DESTDIR)$(BINDIR) $(MKDIR) $(DESTDIR)$(LIBDIR)