-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
52 lines (48 loc) · 1.57 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
# Narthex Makefile
# GNU GPL v3.0
CC=gcc
MD=/usr/share/man/man1/
#all: inc/nin.c enhance/nhan.c leet/nleet.c com/ncom.c rev/nrev.sh
# $(CC) enhance/nhan.c -o nhance
# $(CC) inc/nin.c -o ninc
# $(CC) leet/nleet.c -o nleet
# $(CC) com/ncom.c -o ncom
install: inc/nin.c enhance/nhan.c leet/nleet.c com/ncom.c clean/nclean.c app/napp.c rev/nrev.sh wiz/nwiz.sh inc/ninc.1 enhance/nhance.1 rev/nrev.1 leet/nleet.1 com/ncom.1 clean/nclean.1 app/napp.1
$(CC) enhance/nhan.c -o nhance
$(CC) inc/nin.c -o ninc
$(CC) leet/nleet.c -o nleet
$(CC) com/ncom.c -o ncom
$(CC) clean/nclean.c -o nclean
$(CC) app/napp.c -o napp
$(CC) gen/ngen.c -o ngen
sudo mv nhance /bin
sudo mv ninc /bin
sudo mv nleet /bin
sudo mv ncom /bin
sudo mv nclean /bin
sudo mv napp /bin
sudo mv ngen /bin
sudo cp rev/nrev.sh /bin/nrev
sudo cp wiz/nwiz.sh /bin/nwiz
mkdir -p /var/lib/narthex/
cp wiz/elder.txt /var/lib/narthex/
sudo cp enhance/nhance.1 $(MD)
sudo cp inc/ninc.1 $(MD)
sudo cp leet/nleet.1 $(MD)
sudo cp com/ncom.1 $(MD)
sudo cp clean/nclean.1 $(MD)
sudo cp app/napp.1 $(MD)
sudo cp rev/nrev.1 $(MD)
sudo cp gen/ngen.1 $(MD)
sudo mandb
uninstall: /bin/ninc /bin/nhance /bin/nrev /bin/nleet /bin/ncom /bin/nclean /bin/napp /bin/nwiz /bin/ngen $(MD)ninc.1 $(MD)nhance.1 $(MD)nrev.1 $(MD)nleet.1 $(MD)ncom.1 $(MD)nclean.1 $(MD)napp.1 $(MD)ngen.1
rm /bin/ninc $(MD)ninc.1
rm /bin/nhance $(MD)nhance.1
rm /bin/nleet $(MD)nleet.1
rm /bin/nrev $(MD)nrev.1
rm /bin/ncom $(MD)ncom.1
rm /bin/nclean $(MD)nclean.1
rm /bin/napp $(MD)napp.1
rm /bin/ngen $(MD)ngen.1
rm /bin/nwiz
rm -r /var/lib/narthex/