File: Makefile

package info (click to toggle)
pacman4console 1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 180 kB
  • ctags: 71
  • sloc: ansic: 639; makefile: 60; sh: 39
file content (27 lines) | stat: -rw-r--r-- 870 bytes parent folder | download
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
all:
	gcc -lncurses pacman.c     -o pacman
	gcc -lncurses pacmanedit.c -o pacmanedit

install:	all
	cp pacman /usr/local/bin
	cp pacmanedit /usr/local/bin
	mkdir -p /usr/local/share/pacman
	cp -fR Levels/ /usr/local/share/pacman/
	chown root:games /usr/local/bin/pacman
	chown root:games /usr/local/share/pacman -R
	chmod 750 /usr/local/bin/pacman
	chmod 750 /usr/local/bin/pacmanedit
	chmod 750 /usr/local/share/pacman/ -R

uninstall:
	rm -f /usr/local/bin/pacman
	rm -f /usr/local/bin/pacmanedit
	rm -f /usr/local/share/pacman/Levels/level0[1-9].dat
	rm -f /usr/local/share/pacman/Levels/README
	rm -f /usr/local/share/pacman/Levels/template.dat
	if [ -e /usr/local/share/pacman/Levels/ ] ; then rmdir /usr/local/share/pacman/Levels/ ; fi
	if [ -e /usr/local/share/pacman/ ] ; then rmdir /usr/local/share/pacman/ ; fi

clean:	uninstall
	rm -f pacman
	rm -f pacmanedit