forked from winny-/mcstat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (18 loc) · 636 Bytes
/
Makefile
File metadata and controls
23 lines (18 loc) · 636 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all: mcstat minecraft_users_
mcstat: mcstat.php mcstat_program.php
@echo '== Building mcstat =='
echo '#!/usr/bin/env php' > mcstat
sed -e '$$d' < mcstat.php >> mcstat
sed -e '1,3d' < mcstat_program.php >> mcstat
chmod 755 mcstat
minecraft_users_: mcstat.php minecraft_users_program.php
@echo '== Building minecraft_users_ =='
echo '#!/usr/bin/env php' > minecraft_users_
sed -e '$$d' < mcstat.php >> minecraft_users_
sed -e '1,3d' < minecraft_users_program.php >> minecraft_users_
chmod 755 minecraft_users_
clean:
rm -f mcstat minecraft_users_
test: test/testrunner.sh all
./test/testrunner.sh
.PHONY: all clean test