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
|
Author: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Last-Update: 2022-01-07
Bug-Debian: https://bugs.debian.org/999011
Description: Enable dh_auto_install
Index: rig-1.11/Makefile
===================================================================
--- rig-1.11.orig/Makefile
+++ rig-1.11/Makefile
@@ -1,20 +1,20 @@
-PREFIX=/usr/local
+PREFIX=/usr
BINDIR=${PREFIX}/bin
MANDIR=${PREFIX}/man
DATADIR=${PREFIX}/share/rig
+CXX=g++
all: rig rig.6
rig: rig.cc
- g++ -g rig.cc -o rig -Wall -DDATADIR="\"$(DATADIR)\""
+ ${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 $(BINDIR)
- install -g 0 -m 644 -o 0 rig.6 $(MANDIR)/man6/rig.6
- install -g 0 -m 755 -o 0 -d $(DATADIR)
- install -g 0 -m 644 -o 0 data/*.idx $(DATADIR)
+ 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
|