Browse Source

Add support for BSD in Makefile

Suffix to option -i is optional in GNU sed but mandatory in BSD sed. Adding an empty suffix allows proper installation on Linux and BSD.
pull/6/head
Christian Bettinger 8 years ago
committed by GitHub
parent
commit
904a21537f
  1. 2
      Makefile

2
Makefile

@ -15,7 +15,7 @@ install:
install -d -m 755 $(DESTDIR)/$(PREFIX)/share/man/man1; \
install -m 644 man/xdgmenumaker.1 $(DESTDIR)/$(PREFIX)/share/man/man1/; \
fi
sed -i "s|^prefix = 'not_set'|prefix = '$(PREFIX)'|" $(DESTDIR)/$(PREFIX)/bin/xdgmenumaker
sed -i "" "s|^prefix = 'not_set'|prefix = '$(PREFIX)'|" $(DESTDIR)/$(PREFIX)/bin/xdgmenumaker
clean: test-clean
rm -f man/xdgmenumaker.1

Loading…
Cancel
Save