mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add makefile
This commit is contained in:
parent
7c2977ed47
commit
30d37d31e3
31
Makefile
Normal file
31
Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
BIN = bin
|
||||
RELEASE = release
|
||||
SRC = addons
|
||||
|
||||
$(BIN)/ace_%.pbo: $(SRC)/%
|
||||
@mkdir -p $(BIN)
|
||||
@echo " PBO $@"
|
||||
@armake build -f $< $@
|
||||
|
||||
all: $(patsubst $(SRC)/%, $(BIN)/ace_%.pbo, $(wildcard $(SRC)/*))
|
||||
|
||||
clean:
|
||||
rm -rf $(BIN) $(RELEASE) extensions/build/*
|
||||
|
||||
extensions: $(wildcard extensions/*/*)
|
||||
cd extensions/build && cmake .. && make
|
||||
find ./extensions/build/ \( -name "*.so" -o -name "*.dll" \) -exec cp {} ./ \;
|
||||
|
||||
extensions-win64: $(wildcard extensions/*/*)
|
||||
cd extensions/build && CXX=$(eval $(which g++-w64-mingw-i686)) cmake .. && make
|
||||
|
||||
release: all
|
||||
@mkdir $(RELEASE) 2> /dev/null || rm -rf $(RELEASE)/*
|
||||
@mkdir -p $(RELEASE)/@ace/addons
|
||||
@cp $(BIN)/* $(RELEASE)/@ace/addons/
|
||||
@cp *.dll $(RELEASE)/@ace/
|
||||
@cp *.cpp $(RELEASE)/@ace/
|
||||
@cp logo_ace3_ca.paa README.md LICENSE $(RELEASE)/@ace/
|
||||
@cp docs/* $(RELEASE)/@ace/
|
||||
@echo " ZIP $(RELEASE)/@ace.zip"
|
||||
@cd $(RELEASE); zip -r @ace.zip @ace &> /dev/null; cd ..
|
Loading…
Reference in New Issue
Block a user