summaryrefslogtreecommitdiff
path: root/Makefile
blob: f0c653e104760f200e306decc8466f88ad8d6751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
all:
	cc -o pkg pkg.c flags.c utils.c

clean:
	rm -rf pkg

install: all
	mkdir -p /usr/local/bin
	cp -f pkg /usr/local/bin
	chmod 755 /usr/local/bin
	mkdir -p /usr/local/share/man/man1
	cp -f pkg.1 /usr/local/share/man/man1
	chmod 644 /usr/local/share/man/man1/pkg.1

uninstall:
	rm -rf /usr/local/bin/pkg
	rm -f /usr/local/share/man/man1/pkg.1