New function SB-EXT:ASSERT-VERSION->=
[sbcl.git] / contrib / asdf / Makefile
index 3067de6..658d583 100644 (file)
@@ -1,8 +1,21 @@
-asdf.fasl: asdf.lisp
-       $(SBCL) --eval '(compile-file "asdf")' </dev/null
+DEST=$(SBCL_PWD)/obj/sbcl-home/contrib/
+FASL=$(DEST)/asdf.fasl
 
-test:
+fasl:: $(FASL)
+$(FASL):: asdf.lisp ../../output/sbcl.core
+       if [ -d asdf-upstream ] ; then rm -rf asdf-upstream ; fi
+       mkdir -p $(DEST)
+       $(SBCL) --eval '(compile-file #p"SYS:CONTRIB;ASDF;ASDF.LISP" :output-file (parse-native-namestring "$@"))' </dev/null
+
+install::
+       cp $(FASL) "$(BUILD_ROOT)$(INSTALL_DIR)"
+
+test:: $(FASL)
        true
 
-install: asdf.fasl
-       cp $< $(INSTALL_DIR)
+UPSTREAM=../../obj/asdf-upstream
+up::
+       sh pull-asdf.sh
+       ln -f $(UPSTREAM)/build/asdf.lisp asdf.lisp
+       ln -f $(UPSTREAM)/doc/asdf.texinfo asdf.texinfo
+       ln -f $(UPSTREAM)/README README