]> Nishi Git Mirror - reisen.git/commitdiff
add install target master
authorNishi <nishi@nishi.boats>
Wed, 9 Oct 2024 02:30:52 +0000 (02:30 +0000)
committerNishi <nishi@nishi.boats>
Wed, 9 Oct 2024 02:30:52 +0000 (02:30 +0000)
git-svn-id: file:///raid/svn-personal/reisen/trunk@18 c77b849d-6a5c-934c-a956-7b968ca1e197

Makefile

index 0952b4cd4e3a88675aba3bb4a54936f196c087fe..b38e761e06ae03b5bc5651775c1299efee111596 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,20 @@
 # $Id$
 
 # $Id$
 
+PREFIX = /usr/local
 PLATFORM = generic
 
 include Platform/$(PLATFORM).mk
 
 FLAGS = PLATFORM=$(PLATFORM) PWD=`pwd`
 
 PLATFORM = generic
 
 include Platform/$(PLATFORM).mk
 
 FLAGS = PLATFORM=$(PLATFORM) PWD=`pwd`
 
-.PHONY: all clean ./SFX ./Tool
+.PHONY: all install clean ./SFX ./Tool
 
 all: ./SFX ./Tool
 
 
 all: ./SFX ./Tool
 
+install: all
+       mkdir -p $(PREFIX)/bin
+       cp Tool/reisen $(PREFIX)/bin/
+
 ./SFX::
        $(MAKE) -C $@ $(FLAGS)
 
 ./SFX::
        $(MAKE) -C $@ $(FLAGS)