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 42 43 44 45 46 47 48 49 50 51
|
From: Sven Luther <luther@debian.org>
Date: Wed, 26 Jul 2017 07:56:24 +0200
Subject: Makefiles,
configure scripts and other build stuff adapted for debian package creation
---
Makefile | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index 294bd17..6102f2a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,16 @@
### Configuration section
# The laguages you're interested in, besides English
-LANGUAGES=-DFRENCH #-DSPANISH -DITALIAN -DGERMAN -DPORTUGUESE -DJAPANESE
+LANGUAGES=-DFRENCH -DSPANISH -DITALIAN -DGERMAN -DPORTUGUESE -DJAPANESE
# How to invoke the C preprocessor
CPP=gcc -E -P $(LANGUAGES) -
# Where to install the binary
-BINDIR=/usr/local/bin
+BINDIR=/usr/bin
# Where to install the man pages
-MANDIR=/usr/local/man
+MANDIR=/usr/share/man
### End of configuration section
@@ -30,9 +30,14 @@ NATLIBS=$(BYTELIBS:.cma=.cmxa)
all: spamoracle
install:
- cp spamoracle $(BINDIR)/spamoracle
- cp spamoracle.1 $(MANDIR)/man1/spamoracle.1
- cp spamoracle.conf.5 $(MANDIR)/man5/spamoracle.conf.5
+ cp spamoracle $(DESTDIR)$(BINDIR)/spamoracle
+ cp spamoracle.1 $(DESTDIR)$(MANDIR)/man1/spamoracle.1
+ cp spamoracle.conf.5 $(DESTDIR)$(MANDIR)/man5/spamoracle.conf.5
+
+install.byte:
+ cp spamoracle.byte $(DESTDIR)$(BINDIR)/spamoracle
+ cp spamoracle.1 $(DESTDIR)$(MANDIR)/man1/spamoracle.1
+ cp spamoracle.conf.5 $(DESTDIR)$(MANDIR)/man5/spamoracle.conf.5
spamoracle: $(NATOBJS)
$(OCAMLOPT) -o spamoracle $(NATLIBS) $(NATOBJS)
|