Use symbolic links instead of hard links, because hard links don't
[pintos-anon] / src / Makefile.kernel
index 91146a844925c29edf1fa48bac2403986cbcb4c8..04214fd953299db397af8f80caf0849b86eb0363 100644 (file)
@@ -1,6 +1,6 @@
 include Makefile.vars
 BUILD_SUBDIRS = $(addprefix build/, $(SUBDIRS))
-LN = ln
+LN_S = ln -s
 MKDIR = mkdir
 
 all: build build/Makefile $(BUILD_SUBDIRS)
@@ -11,7 +11,7 @@ $(BUILD_SUBDIRS):
 build:
        $(MKDIR) $@
 build/Makefile: ../Makefile.build
-       $(LN) -f $< $@
+       $(LN_S) -Xf ../../Makefile.build $@
 
 clean:
        rm -rf build