7bc48d7170
- Fix slightly incorrect generation of default .gitignore file. - Make cvsreduce work under Python 3, and test for that. - Revert <2014-11-19T18:11:22Z@flower.powernet.co.uk>, optimization was wrong. - Fix a typo in a property name that affects interoperability with reposurgeon. - Savannah changed how you need to interpret pseudo-URLs.
56 lines
1.8 KiB
Text
56 lines
1.8 KiB
Text
$NetBSD: patch-Makefile,v 1.11 2018/09/26 23:19:05 schmonz Exp $
|
|
|
|
* Use ${PREFIX} variable.
|
|
* Comment out "-march=native"
|
|
* Add "all" target.
|
|
* Install man pages in ${PREFIX}/${PKGMANDIR}, not ${PREFIX}/share/man.
|
|
|
|
--- Makefile.orig 2018-07-06 02:37:10.000000000 +0000
|
|
+++ Makefile
|
|
@@ -17,11 +17,12 @@
|
|
VERSION=1.44
|
|
|
|
.PATH: $(.PARSEDIR)
|
|
-prefix?=/usr/local
|
|
+prefix?=$(PREFIX)
|
|
target=$(DESTDIR)$(prefix)
|
|
parsedir:=$(.PARSEDIR)
|
|
srcdir=$(dir $(abspath $(firstword $(MAKEFILE_LIST))))$(parsedir)
|
|
VPATH=$(srcdir)
|
|
+mandir=$(PKGMANDIR)
|
|
|
|
INSTALL = install
|
|
TAR = tar
|
|
@@ -40,7 +41,7 @@ CFLAGS += -pthread
|
|
CPPFLAGS += -DTHREADS
|
|
|
|
# Optimizing for speed. Comment this out for distribution builds
|
|
-CFLAGS += -march=native
|
|
+#CFLAGS += -march=native
|
|
|
|
# To enable debugging of the Yacc grammar, uncomment the following line
|
|
#CPPFLAGS += -DYYDEBUG=1
|
|
@@ -100,6 +101,8 @@ dump.o export.o graph.o main.o collate.o
|
|
|
|
BISON ?= bison
|
|
|
|
+all: cvs-fast-export cvs-fast-export.1
|
|
+
|
|
gram.h gram.c: gram.y
|
|
$(BISON) $(YFLAGS) --defines=gram.h --output-file=gram.c $(srcdir)/gram.y
|
|
lex.h lex.c: lex.l
|
|
@@ -143,10 +146,10 @@ install-bin: cvs-fast-export cvssync cvs
|
|
$(INSTALL) -d "$(target)/bin"
|
|
$(INSTALL) $^ "$(target)/bin"
|
|
install-man: man
|
|
- $(INSTALL) -d "$(target)/share/man/man1"
|
|
- $(INSTALL) -m 644 cvs-fast-export.1 "$(target)/share/man/man1"
|
|
- $(INSTALL) -m 644 cvssync.1 "$(target)/share/man/man1"
|
|
- $(INSTALL) -m 644 cvsconvert.1 "$(target)/share/man/man1"
|
|
+ $(INSTALL) -d "$(target)/$(mandir)/man1"
|
|
+ $(INSTALL) -m 644 cvs-fast-export.1 "$(target)/$(mandir)/man1"
|
|
+ $(INSTALL) -m 644 cvssync.1 "$(target)/$(mandir)/man1"
|
|
+ $(INSTALL) -m 644 cvsconvert.1 "$(target)/$(mandir)/man1"
|
|
uninstall: uninstall-man uninstall-bin
|
|
uninstall-man:
|
|
cd $(target)/share/man/man1/ && rm -f cvs-fast-export.1 cvssync.1 cvsconvert.1
|