PREFIX = /usr/local .PHONY: install screenlock: screenlock.c gcc -o screenlock screenlock.c -lX11 install: screenlock mkdir -p $(PREFIX)/bin cp -f screenlock $(PREFIX)/bin/screenlock chmod 755 $(PREFIX)/bin/screenlock