File: Makefile

package info (click to toggle)
rig 1.10-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 96 kB
  • ctags: 40
  • sloc: cpp: 241; makefile: 56
file content (20 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
PREFIX=/usr
BINDIR=${PREFIX}/bin
MANDIR=${PREFIX}/man
DATADIR=${PREFIX}/share/rig
CXX=g++

all: rig rig.6
rig: rig.cc
	${CXX} -O2 -g rig.cc -o rig -Wall -DDATADIR="\"$(DATADIR)\""

rig.6: rig.6.in
	sed s@DATADIR@"$(DATADIR)"@g < rig.6.in > rig.6

install: rig rig.6
	install -g 0 -m 755 -o 0 -s rig $(DESTDIR)$(BINDIR)
	install -g 0 -m 755 -o 0 -d $(DESTDIR)$(DATADIR)
	install -g 0 -m 644 -o 0 data/*.idx $(DESTDIR)$(DATADIR)

clean:
	rm -rf *~ *.rej *.orig *.o rig rig.6