Improve permissions and strip binaries
- Use 0755 for directories - Use 0644 for libraries, includes and shared files - Use -s (strip) parameter when installing binaries and libraries
This commit is contained in:
parent
50522df3d9
commit
dabf0e5918
13 changed files with 53 additions and 53 deletions
|
|
@ -102,19 +102,19 @@ distclean: clean
|
|||
# Also create a libexec/ directory for writeable/temporary files.
|
||||
# Put config file in etc/
|
||||
install: install-lib $(APPL)
|
||||
install -d $(DESTDIR)$(bindir)
|
||||
install $(APPL) $(DESTDIR)$(bindir)
|
||||
install -d -m 0755 $(DESTDIR)$(bindir)
|
||||
install -m 0644 -s $(APPL) $(DESTDIR)$(bindir)
|
||||
|
||||
install-lib: $(MYLIB)
|
||||
install -d $(DESTDIR)$(libdir)
|
||||
install $(MYLIB) $(DESTDIR)$(libdir)
|
||||
install -d -m 0755 $(DESTDIR)$(libdir)
|
||||
install -m 0644 -s $(MYLIB) $(DESTDIR)$(libdir)
|
||||
ln -sf $(MYLIB) $(DESTDIR)$(libdir)/$(MYLIBSO) # -l:libclixon_cli.so.2
|
||||
ln -sf $(MYLIBSO) $(DESTDIR)$(libdir)/$(MYLIBLINK) # -l:libclixon_cli.so
|
||||
install -d $(DESTDIR)$(libdir)/clixon/plugins/cli
|
||||
install -d -m 0755 $(DESTDIR)$(libdir)/clixon/plugins/cli
|
||||
|
||||
install-include: clixon_cli.h clixon_cli_api.h
|
||||
install -d $(DESTDIR)$(includedir)/clixon
|
||||
install -m 644 $^ $(DESTDIR)$(includedir)/clixon
|
||||
install -d -m 0755 $(DESTDIR)$(includedir)/clixon
|
||||
install -m 0644 $^ $(DESTDIR)$(includedir)/clixon
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(bindir)/$(APPL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue