Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /contrib/vanilla-module.mk [9c3a95] .. [25c176] Maximize Restore

  Switch to side-by-side view

--- a/contrib/vanilla-module.mk
+++ b/contrib/vanilla-module.mk
@@ -1,8 +1,15 @@
+DEST=$(SBCL_PWD)/obj/sbcl-home/contrib/
+FASL=$(DEST)/$(MODULE).fasl
+ASD=$(DEST)/$(MODULE).asd
 
-$(MODULE).fasl: $(MODULE).lisp ../../output/sbcl.core
-	$(SBCL) --eval '(compile-file (format nil "SYS:CONTRIB;~:@(~A~);~:@(~A~).LISP" "$(MODULE)" "$(MODULE)"))' </dev/null
+fasl:: $(FASL)
+$(FASL):: $(MODULE).lisp ../../output/sbcl.core
+	$(SBCL) --eval '(compile-file (format nil "SYS:CONTRIB;~:@(~A~);~:@(~A~).LISP" "$(MODULE)" "$(MODULE)") :output-file (parse-native-namestring "$@"))' </dev/null
 
-test:: $(MODULE).fasl
+$(ASD)::
+	echo "(defsystem :$(MODULE) :class require-system)" > $@
+
+test:: $(FASL) $(ASD)
 
 install:
-	cp $(MODULE).fasl "$(BUILD_ROOT)$(INSTALL_DIR)"
+	cp $(FASL) $(ASD) "$(BUILD_ROOT)$(INSTALL_DIR)"