makefile (358B)
1 build: 2 mkdir -p bin && go build -o bin/quran src/main.go 3 clean: 4 rm -rf bin 5 install: 6 make build && mv bin/quran /usr/local/bin && make add-man && make clean 7 add-man: 8 cp man/quran.1 /usr/local/man/man1 && makewhatis /usr/local/man 9 rm-man: 10 rm -i /usr/local/man/man1/quran.1 && makewhatis /usr/local/man 11 uninstall: 12 rm -i /usr/local/bin/quran ; make rm-man