File: Makefile

package info (click to toggle)
rig 1.11-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, squeeze, stretch, wheezy
  • size: 100 kB
  • ctags: 39
  • sloc: cpp: 245; makefile: 55
file content (20 lines) | stat: -rw-r--r-- 470 bytes parent folder | download
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 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