Skip to content

Commit 1db7bdc

Browse files
committed
Add Makefile
1 parent fbc60ab commit 1db7bdc

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
/*.tar.xz
2323
/build-aux
2424
/libtool
25-
/Makefile
2625
/TAGS
2726
/GPATH
2827
/GRTAGS

Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
all: build
2+
ninja -C build
3+
.PHONY: all
4+
5+
build:
6+
meson build
7+
8+
clean:
9+
rm -rf build/
10+
.PHONY: clean
11+
12+
install: build
13+
ninja -C build install
14+
.PHONY: install
15+
16+
format:
17+
@for f in lib/*.[ch] tool/*.[ch]; do \
18+
echo $$f; \
19+
astyle --quiet --options=.astylerc $$f; \
20+
done
21+
.PHONY: format
22+
23+
install-tree: build
24+
rm -rf build/install-tree
25+
DESTDIR=install-tree ninja -C build install
26+
tree build/install-tree
27+
.PHONY: install-tree

0 commit comments

Comments
 (0)