-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
35 lines (31 loc) · 1021 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Unix makefile for Unix-like operating systems like GNU/Linux.
# original by hjri
# rewrite by me, lolwellun the teapot
# Requires installation of GNU make (or equivilant) and 7z
NAME=fauxdm-dev
NAMEOPT=fauxdm-optional-dev
SRC=pk3/acs
OBJ=pk3/acs
.PHONY: help pk3 pk7 clean
help:
@echo "Available options:"
@echo " help - Prints this dialog and exits."
@echo " pk3 - Builds a pk3 archive of the target sources."
@echo " pk7 - Builds a pk7 archive of the target sources."
@echo " clean - Removes all archives."
@echo "How to use:"
@echo " Make sure that 7z is installed."
@echo " Type 'make -option-'."
@echo " Replace '-option-' with the option you want to use."
pk3:
@echo -n "Building ${NAME}.pk3 ......"
@cd fauxdm-dev && 7z a -tzip ../${NAME}.pk3 *
@echo "done"
pk7:
@echo -n "Building ${NAME}.pk7 ......"
@cd fauxdm-dev && 7z a ../${NAME}.pk7 *
@echo "done"
clean:
@echo -n "Removing archives....."
@rm -f ${NAME}.pk7 ${NAME}.pk3 ${NAMEOPT}.pk7 ${NAMEOPT}.pk3
@echo "done"