mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-04 08:30:51 +00:00
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:
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"`
|
||||
|
||||
Reference in New Issue
Block a user