50 lines
2.3 KiB
Text
50 lines
2.3 KiB
Text
$NetBSD: patch-Makefile,v 1.3 2018/10/11 12:10:09 jperkin Exp $
|
|
|
|
Use portable sed calls to avoid gsed.
|
|
Use pkgsrc paths for man pages.
|
|
|
|
--- Makefile.orig 2018-08-24 18:46:27.000000000 +0000
|
|
+++ Makefile
|
|
@@ -109,7 +109,7 @@ install: compile
|
|
$(INSTALL_DATA) $$dir/ebin/* "$(DESTDIR)$(PREFIX)/$(LIBDIR)/elixir/$$dir/ebin"; \
|
|
done
|
|
$(Q) $(INSTALL_DIR) "$(DESTDIR)$(PREFIX)/$(LIBDIR)/elixir/bin"
|
|
- $(Q) $(INSTALL_PROGRAM) $(filter-out %.ps1, $(filter-out %.bat, $(wildcard bin/*))) "$(DESTDIR)$(PREFIX)/$(LIBDIR)/elixir/bin"
|
|
+ $(Q) $(INSTALL_PROGRAM) $(filter-out %.ps1, $(filter-out %.bat, $(filter-out %.orig, $(wildcard bin/*)))) "$(DESTDIR)$(PREFIX)/$(LIBDIR)/elixir/bin"
|
|
$(Q) $(INSTALL_DIR) "$(DESTDIR)$(PREFIX)/$(BINDIR)"
|
|
$(Q) for file in "$(DESTDIR)$(PREFIX)"/$(LIBDIR)/elixir/bin/*; do \
|
|
ln -sf "../$(LIBDIR)/elixir/bin/$${file##*/}" "$(DESTDIR)$(PREFIX)/$(BINDIR)/"; \
|
|
@@ -262,14 +262,14 @@ build_man: man/iex.1 man/elixir.1
|
|
|
|
man/iex.1:
|
|
$(Q) cp man/iex.1.in man/iex.1
|
|
- $(Q) sed -i.bak "/{COMMON}/r man/common" man/iex.1
|
|
- $(Q) sed -i.bak "/{COMMON}/d" man/iex.1
|
|
+ $(Q) sed "/{COMMON}/r man/common" man/iex.1 > man/iex.1.bak
|
|
+ $(Q) sed "/{COMMON}/d" man/iex.1.bak > man/iex.1
|
|
$(Q) rm -f man/iex.1.bak
|
|
|
|
man/elixir.1:
|
|
$(Q) cp man/elixir.1.in man/elixir.1
|
|
- $(Q) sed -i.bak "/{COMMON}/r man/common" man/elixir.1
|
|
- $(Q) sed -i.bak "/{COMMON}/d" man/elixir.1
|
|
+ $(Q) sed "/{COMMON}/r man/common" man/elixir.1 > man/elixir.1.bak
|
|
+ $(Q) sed "/{COMMON}/d" man/elixir.1.bak > man/elixir.1
|
|
$(Q) rm -f man/elixir.1.bak
|
|
|
|
clean_man:
|
|
@@ -279,9 +279,9 @@ clean_man:
|
|
rm -f man/iex.1.bak
|
|
|
|
install_man: build_man
|
|
- $(Q) mkdir -p $(DESTDIR)$(SHARE_PREFIX)/man/man1
|
|
- $(Q) $(INSTALL_DATA) man/elixir.1 $(DESTDIR)$(SHARE_PREFIX)/man/man1
|
|
- $(Q) $(INSTALL_DATA) man/elixirc.1 $(DESTDIR)$(SHARE_PREFIX)/man/man1
|
|
- $(Q) $(INSTALL_DATA) man/iex.1 $(DESTDIR)$(SHARE_PREFIX)/man/man1
|
|
- $(Q) $(INSTALL_DATA) man/mix.1 $(DESTDIR)$(SHARE_PREFIX)/man/man1
|
|
+ $(Q) mkdir -p $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1
|
|
+ $(Q) $(INSTALL_DATA) man/elixir.1 $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1
|
|
+ $(Q) $(INSTALL_DATA) man/elixirc.1 $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1
|
|
+ $(Q) $(INSTALL_DATA) man/iex.1 $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1
|
|
+ $(Q) $(INSTALL_DATA) man/mix.1 $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1
|
|
$(MAKE) clean_man
|