-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
39 lines (32 loc) · 844 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
36
37
38
39
CC=fpc
CFLAGS=-Mobjfpc -Ci -Cr -Co -Ct -CR -Xs -Sa -gh -gw3 -gl -dTPARTED_DEBUG
CFLAGS_REL=-Ci -Cr -Co -Ct -CR -Xs -Sa -O2
build:
mkdir -p ./bin
mkdir -p ./output
$(CC) -FE./bin -FU./output $(CFLAGS_REL) ./src/tparted.lpr
debug:
mkdir -p ./bin
mkdir -p ./output
$(CC) -FE./bin -FU./output $(CFLAGS) ./src/tparted.lpr
clean:
rm -rf ./bin
rm -rf ./output
install:
sudo cp ./bin/tparted /usr/bin/tparted
sudo rm -rf /opt/tparted
sudo mkdir /opt/tparted
sudo cp -rf ./bin/locale /opt/tparted
uninstall:
sudo rm /usr/bin/tparted
sudo rm -rf /opt/tparted
test:
mkdir -p ./bin
mkdir -p ./output
$(CC) -FE./bin $(CFLAGS) -FU./output -Fu./src -Fi./src ./tests/tests.lpr
conv:
mkdir -p ./po
rstconv -i ./output/locale.rsj -o ./po/en_US.po
mkdir -p ./bin
mkdir -p ./bin/locale
msgfmt -f ./po/ja_JP.po -o ./bin/locale/ja_JP.mo