commit 933908bcbe0f22ecea7dd76babd4aca74e91c275
parent 5a3498bb3946df112e5b0fd47018cecf0e1629e6
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 23 Feb 2018 17:18:23 +0100
Makefile: make install improvements
- Make sure the $(DESTDIR)$(PREFIX) exists before installing in it.
- Don't strip binaries by default.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -28,9 +28,10 @@ tests: all
+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