ref: f6d58032580a1504f585af9b0ca7e0ba8178232f
parent: f7ca8c36a07f073bc6dcba7bd705933cd5c96ea0
author: Hiltjo Posthuma <hiltjo@codemadness.org>
date: Fri Feb 23 12:18:23 EST 2018
Makefile: make install improvements - Make sure the $(DESTDIR)$(PREFIX) exists before installing in it. - Don't strip binaries by default.
--- a/Makefile
+++ b/Makefile
@@ -28,9 +28,10 @@
+cd tests && $(MAKE) -e all
install: all
+ mkdir -p $(DESTDIR)$(PREFIX)/
cp -r rootdir/* $(DESTDIR)$(PREFIX)/
- cd $(DESTDIR)$(PREFIX)/libexec/scc/ && chmod 755 cc* && strip cc*
- cd $(DESTDIR)$(PREFIX)/bin && chmod 755 scpp scc && strip scc
+ cd $(DESTDIR)$(PREFIX)/libexec/scc/ && chmod 755 cc*
+ cd $(DESTDIR)$(PREFIX)/bin && chmod 755 scc cpp
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
sed "s/VERSION/$(VERSION)/g" < doc/scc.1 > $(DESTDIR)$(MANPREFIX)/man1/scc.1
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/scc.1