summaryrefslogtreecommitdiff
path: root/comms/efax/files/patch-src:Makefile
blob: 30d6d5985b11f9956653d7a46da44cb189b8e629 (plain) (blame)
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
37
38
39
40
41
--- Makefile.orig	Wed Jun 28 19:01:22 2000
+++ Makefile	Sun Oct 20 03:06:13 2002
@@ -3,20 +3,17 @@
 # Change the following to the name of your ANSI C compiler
 # (normally gcc).
 
-CC=gcc
+CC?=cc
 
 # Compile/load options. Add -DNO_STRERROR to CFLAGS if _strerror
 # is undefined
 
-CFLAGS=
-LDFLAGS=
-
 # Change the following to the destination directories for
 # binaries and man pages. Probably /usr/bin and /usr/man on
 # Linux, /usr/local/{bin,man} on other systems.
 
-BINDIR=/usr/bin
-MANDIR=/usr/man
+BINDIR=$(PREFIX)/bin
+MANDIR=$(PREFIX)/man
 
 .c.o:
 	$(CC) $(CFLAGS) -c $<
@@ -32,11 +29,9 @@
 	strip efix
 
 install:
-	cp fax efax efix $(BINDIR)
-	chmod 755 $(BINDIR)/fax $(BINDIR)/efax $(BINDIR)/efix
-	cp fax.1 efax.1 efix.1 $(MANDIR)/man1
-	chmod 644 $(MANDIR)/man1/fax.1 $(MANDIR)/man1/efax.1  \
-		$(MANDIR)/man1/efix.1
+	$(INSTALL_PROGRAM) efax efix $(BINDIR)
+	$(INSTALL_SCRIPT)  fax $(BINDIR)
+	$(INSTALL_DATA) fax.1 efax.1 efix.1 $(MANDIR)/man1
 
 clean:	
 	rm -f efax efix efax.o efix.o efaxlib.o efaxio.o efaxos.o efaxmsg.o