summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleo2000-09-17 14:24:16 +0000
committerleo2000-09-17 14:24:16 +0000
commit2f80d1a688631867dc93876e472685ef3abaf9f4 (patch)
treeedc08567a5e99ef5017d8ddfb6edda0d6e378305
parentd157663578274457048e0212e100f9887552d6d6 (diff)
Added install target
git-svn-id: http://svn.leocad.org/trunk@121 c7d43263-9d01-0410-8a33-9dba5d9f93d6
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7c49d23..827741d 100644
--- a/Makefile
+++ b/Makefile
@@ -89,6 +89,7 @@ help:
@echo 'Possible Targets are:'
@echo ' help (this is it)'
@echo ' all'
+ @echo ' install'
@echo ' binary'
@echo ' source'
@echo ' (binary and source can be called as'
@@ -99,11 +100,15 @@ help:
@echo
### Rules to make various packaging
-.PHONY: binary binary-tgz source-zip source-tgz source
+.PHONY: binary binary-tgz source-zip source-tgz source install
arch:
mkdir arch
+install: $(BIN)
+ install -c -m 0755 $(BIN) $(PREFIX)/bin
+ install -c -m 0644 docs/leocad.1 $(PREFIX)/man/man1
+
binary: binary-zip binary-tgz
binary-zip: arch/leocad-$(VERSION)-linux.zip
@@ -124,6 +129,7 @@ package-dir: arch all
cp README.txt leocad-$(VERSION)/README
cp docs/INSTALL.txt leocad-$(VERSION)/INSTALL
cp docs/LINUX.txt leocad-$(VERSION)/LINUX
+ cp docs/leocad.1 leocad-$(VERSION)
arch/leocad-$(VERSION)-linux.zip: package-dir
rm -f $@