diff --git a/.gitignore b/.gitignore index c11a4e6..76e1319 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /.settings /.project /.cproject +/.root /kern/compile/ /defs.mk build diff --git a/mk/os161.kernel.mk b/mk/os161.kernel.mk index ebb8003..9825679 100644 --- a/mk/os161.kernel.mk +++ b/mk/os161.kernel.mk @@ -163,6 +163,9 @@ includelinks: clean: rm -f *.o *.a tags $(KERNEL) rm -rf includelinks + @ABSTOP=$$(readlink -f $(TOP)) + unlink $(OSTREE)/.src + unlink $(TOP)/.root distclean cleandir: clean rm -f .depend @@ -188,6 +191,9 @@ install: cp $(KERNEL) $(OSTREE)/$(KERNEL)-$(CONFNAME) -rm -f $(OSTREE)/$(KERNEL) ln -s $(KERNEL)-$(CONFNAME) $(OSTREE)/$(KERNEL) + @ABSTOP=$$(readlink -f $(TOP)) + ln -Tsf $(ABSTOP) $(OSTREE)/.src + ln -Tsf $(OSTREE) $(ABSTOP)/.root # # Run tags on all the sources and header files. This is probably not