openbsd-ports/devel/mk/patches/patch-Makefile
ajacoutot 39f2a1c05c - add license marker
- don't force compiler optimization
- don't hardcode CC
- regen patches while here

ok markus@ (maintainer)
2007-12-20 15:47:18 +00:00

26 lines
810 B
Plaintext

--- Makefile.orig Thu Feb 13 16:05:44 2003
+++ Makefile Thu Dec 20 16:46:01 2007
@@ -10,7 +10,7 @@ OBJTYPE!=uname -m | sed 's;i.86;386;; s;/.*;;'
# the gnu rules will mess up bsd but not vice versa,
# hence the gnu rules come first.
-include Make.$(SYSNAME)-$(OBJTYPE)
+include Make.$(SYSNAME)
PREFIX=/usr/local
@@ -57,11 +57,11 @@ TGZFILES+=mk.pdf
install: $(LIB)
test -d $(PREFIX)/man/man1 || mkdir $(PREFIX)/man/man1
- test -d $(PREFIX)/doc || mkdir $(PREFIX)/doc
+ test -d $(PREFIX)/share/doc/mk || mkdir -p $(PREFIX)/share/doc/mk
install -m 0755 mk $(PREFIX)/bin/mk
cat mk.1 | sed 's;DOCPREFIX;$(PREFIX);g' >mk.1a
install -m 0644 mk.1a $(PREFIX)/man/man1/mk.1
- install -m 0644 mk.pdf $(PREFIX)/doc/mk.pdf
+ install -m 0644 mk.pdf $(PREFIX)/share/doc/mk/mk.pdf
$(TARG): $(OFILES)