scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 7d91b92b663e060abf21b8d6602e786c33a2d6ae
parent f931d1f2a0a90f71ff7b6895c7dba29fbe9f10d9
Author: Quentin Rameau <quinq@fifth.space>
Date:   Tue, 29 Aug 2017 12:52:01 +0200

Makefile: remove the / between DESTDIR and PREFIX

Thanks to tarug0 and 20h for the suggestion.

Responsabilize the user to use absolute path instead of trying to secure
it internally.

Diffstat:
MMakefile | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile @@ -35,12 +35,12 @@ tests: all cd tests && $(MAKE) -e all install: all - 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 + 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 uninstall: - rm -rf $(DESTDIR)/$(PREFIX)/libexec/scc/ - rm -rf $(DESTDIR)/$(PREFIX)/lib/scc/ - rm -f $(DESTDIR)/$(PREFIX)/bin/scc - rm -f $(DESTDIR)/$(PREFIX)/bin/scpp + rm -rf $(DESTDIR)$(PREFIX)/libexec/scc/ + rm -rf $(DESTDIR)$(PREFIX)/lib/scc/ + rm -f $(DESTDIR)$(PREFIX)/bin/scc + rm -f $(DESTDIR)$(PREFIX)/bin/scpp