Skip to content

Commit 0f474f4

Browse files
committed
Rename build to reflect architecture
1 parent b2810fc commit 0f474f4

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ CMakeFiles/
2121
Makefile
2222
cmake_install.cmake
2323
build
24-
linux-build/out
24+
package-debian/out
2525

2626
#IDE
2727
.idea/

linux-build/Makefile

-25
This file was deleted.

package-debian/Makefile

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
COMMIT_SHA_SHORT ?= $(shell git rev-parse --short=12 HEAD)
2+
PWD_DIR:= ${CURDIR}
3+
SHELL := /bin/bash
4+
5+
default: help;
6+
7+
# ======================================================================================
8+
build-builder-debian: ## build the builder image that contains the source code
9+
@docker build -f build-debian.dockerfile -t mcmap-builder-debian:latest ./..
10+
11+
build-debian: build-builder-debian ## build for linux using docker
12+
@mkdir -p out
13+
@docker run -it --rm -v ${PWD_DIR}/out:/out mcmap-builder-debian:latest /bin/bash -c "mkdir -p /mcmap/build && \
14+
cd /mcmap/build && \
15+
cmake .. && \
16+
make -j mcmap mcmap-gui && \
17+
cp /mcmap/build/bin/* /out"
18+
19+
package-debian: build-debian ## package the just compiled binary
20+
@docker run -it --rm -v ${PWD_DIR}/out:/out mcmap-builder-debian:latest /bin/bash -c "cd /out && \
21+
nfpm pkg -f /mcmap/package-debian/nfpm.yaml -p deb"
22+
23+
24+
help: ## Show this help
25+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m- %-20s\033[0m %s\n", $$1, $$2}'
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)