Browse Source

Sol Part 62.6: That Was Probably Important!

Graham Northup 4 years ago
parent
commit
fe7374418b
Signed by: Graham Northup <grissess@nexusg.org> GPG Key ID: 5D000E6F539376FB
1 changed files with 14 additions and 5 deletions
  1. 14
    5
      Makefile

+ 14
- 5
Makefile View File

@@ -26,24 +26,33 @@ BUILD_DEFINES:= -DSOL_BUILD_HOST="\"$(shell uname -n)\"" -DSOL_BUILD_KERNEL="\"$
26 26
 SOL_VER:=$(MAJOR).$(MINOR)$(RELEASE)$(PATCH)
27 27
 LINKED_VERS:=sol sol$(MAJOR) sol$(MAJOR).$(MINOR)
28 28
 
29
-.PHONY: install install_bin install_bindir uninstall uninstall_bin all test clean docs
29
+.PHONY: install install_bin install_bindir install_lib install_libdir uninstall uninstall_bin uninstall_lib all test clean docs
30 30
 
31 31
 all: dsl $(LINKED_VERS)
32 32
 
33
-install: install_bindir install_bin
33
+install: install_bindir install_libdir install_bin install_lib
34 34
 
35
-install_bin:  sol$(SOL_VER) $(LINKED_VERS)
35
+install_bin: sol$(SOL_VER) $(LINKED_VERS)
36 36
 	install $? $(DESTDIR)/bin/
37 37
 
38
+install_lib: programs tests
39
+	cp -r $? $(DESTDIR)/lib/sol$(SOL_VER)/
40
+
38 41
 install_bindir: 
39
-	mkdir -p $(DESTDIR)/bin/
42
+	install -d $(DESTDIR)/bin/
43
+
44
+install_libdir:
45
+	install -d $(DESTDIR)/lib/sol$(SOL_VER)/
40 46
 
41
-uninstall: uninstall_bin
47
+uninstall: uninstall_bin uninstall_lib
42 48
 
43 49
 uninstall_bin:
44 50
 	rm $(DESTDIR)/bin/sol$(SOL_VER) || true
45 51
 	for fname in $(LINKED_VERS); do rm $(DESTDIR)/bin/$$fname || true; done
46 52
 
53
+uninstall_lib:
54
+	rm -r $(DESTDIR)/lib/sol$(SOL_VER)/{programs,tests}
55
+
47 56
 $(LINKED_VERS): sol$(SOL_VER)
48 57
 	rm $@; ln -s $? $@
49 58
 	

Loading…
Cancel
Save