forked from pyrite-dev/milsko
add install for makefile
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@339 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
234d726e3f
commit
a9c46fb196
12 changed files with 27 additions and 5 deletions
16
GNUmakefile
16
GNUmakefile
|
|
@ -1,5 +1,7 @@
|
|||
# $Id$
|
||||
|
||||
PREFIX = /usr/milsko
|
||||
|
||||
ifeq ($(TARGET),)
|
||||
TARGET = $(shell uname -s)
|
||||
endif
|
||||
|
|
@ -153,13 +155,25 @@ OOL_OBJS += oosrc/widget/vulkan.o
|
|||
EXAMPLES += examples/vulkan$(EXEC)
|
||||
endif
|
||||
|
||||
.PHONY: all format clean lib oolib examples
|
||||
.PHONY: all install format clean lib oolib examples
|
||||
|
||||
all: lib examples
|
||||
lib: src/$(LIB)Mw$(SO)
|
||||
oolib: oosrc/$(LIB)MwOO$(SO)
|
||||
examples: $(EXAMPLES)
|
||||
|
||||
install: lib oolib
|
||||
mkdir -p $(PREFIX)/lib
|
||||
mkdir -p $(PREFIX)/bin
|
||||
mkdir -p $(PREFIX)/include
|
||||
for i in src oosrc; do \
|
||||
cp $$i/*.so $(PREFIX)/lib/ ; \
|
||||
cp $$i/*.a $(PREFIX)/lib/ ; \
|
||||
cp $$i/*.dll $(PREFIX)/bin/ ; \
|
||||
done ; true
|
||||
cp -rf include/Mw $(PREFIX)/include/
|
||||
cp -rf include/MwOO $(PREFIX)/include/
|
||||
|
||||
format:
|
||||
clang-format --verbose -i `find oosrc src include examples tools "(" -name "*.c" -or -name "*.h" ")" -and -not -name "stb_*.h"`
|
||||
perltidy -b -bext='/' --paren-tightness=2 `find tools -name "*.pl"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue