summaryrefslogtreecommitdiff
path: root/ham/lpsk31/Makefile.patch
blob: 79a18a45dab4d7d56cb60406f1bfcd0ae85fe0ba (plain)
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
--- Makefile.old	2019-12-21 13:44:12.414553374 -0600
+++ Makefile	2019-12-21 14:12:56.166581253 -0600
@@ -2,8 +2,8 @@
 
 SHELL   = /bin/sh
 PROJECT = lpsk31
-BINDIR  = /usr/local/bin
-DOCDIR  = /usr/local/share/doc/
+BINDIR  = /usr/bin
+DOCDIR  = /usr/share/doc/
 CC      = gcc -Wall -march=native -O2 -D_FORTIFY_CODE=2
 
 objects = cat.o main.o phase.o pskcodec.o screen.o sound.o
@@ -20,10 +20,7 @@
 sound.o : sound.h
 
 install : $(PROJECT)
-	install -m 755 --strip $(PROJECT) $(BINDIR)
-	install -m 644 doc/$(PROJECT).html $(DOCDIR)
-	if test ! -d $(HOME)/$(PROJECT); then mkdir $(HOME)/$(PROJECT); fi
-	install -m 644 default/$(PROJECT)rc $(HOME)/$(PROJECT)
+	install -m 755 --strip $(PROJECT) $(DESTDIR)$(BINDIR)
 
 uninstall :
 	if test -d $(HOME)/$(PROJECT); then rm -r $(HOME)/$(PROJECT); fi