瀏覽代碼

Sol Part 62.6: That Was Probably Important!

master
Graham Northup 5 年前
父節點
當前提交
fe7374418b
簽署人: grissess GPG 金鑰 ID: 5D000E6F539376FB
  1. 19
      Makefile

19
Makefile

@ -26,24 +26,33 @@ BUILD_DEFINES:= -DSOL_BUILD_HOST="\"$(shell uname -n)\"" -DSOL_BUILD_KERNEL="\"$
SOL_VER:=$(MAJOR).$(MINOR)$(RELEASE)$(PATCH)
LINKED_VERS:=sol sol$(MAJOR) sol$(MAJOR).$(MINOR)
.PHONY: install install_bin install_bindir uninstall uninstall_bin all test clean docs
.PHONY: install install_bin install_bindir install_lib install_libdir uninstall uninstall_bin uninstall_lib all test clean docs
all: dsl $(LINKED_VERS)
install: install_bindir install_bin
install: install_bindir install_libdir install_bin install_lib
install_bin: sol$(SOL_VER) $(LINKED_VERS)
install_bin: sol$(SOL_VER) $(LINKED_VERS)
install $? $(DESTDIR)/bin/
install_lib: programs tests
cp -r $? $(DESTDIR)/lib/sol$(SOL_VER)/
install_bindir:
mkdir -p $(DESTDIR)/bin/
install -d $(DESTDIR)/bin/
install_libdir:
install -d $(DESTDIR)/lib/sol$(SOL_VER)/
uninstall: uninstall_bin
uninstall: uninstall_bin uninstall_lib
uninstall_bin:
rm $(DESTDIR)/bin/sol$(SOL_VER) || true
for fname in $(LINKED_VERS); do rm $(DESTDIR)/bin/$$fname || true; done
uninstall_lib:
rm -r $(DESTDIR)/lib/sol$(SOL_VER)/{programs,tests}
$(LINKED_VERS): sol$(SOL_VER)
rm $@; ln -s $? $@

載入中…
取消
儲存