4745b45b5a
While on it: - Pet portlint: regenerate patches using 'make makepatch' - Add LICENSE PR: 204845 Submitted by: yama@jasper.co.jp MFH: 2015Q4 (ports-secteam fix blanket)
41 lines
1 KiB
Text
41 lines
1 KiB
Text
--- Makefile.orig 2000-06-29 02:01:22 UTC
|
|
+++ Makefile
|
|
@@ -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 @@ efix: efix.o efaxlib.o efaxmsg.o
|
|
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
|