Makefile (280B)
1 default: build 2 3 build: 4 @if [ ! -f sensors.h ]; then cp sensors.def.h sensors.h; fi 5 gcc -Wall -o sds sds.c -l curl 6 gcc -Wall -o testserver testserver.c 7 8 install: build 9 cp -f sds /usr/bin/sds 10 chmod +x /usr/bin/sds 11 12 uninstall: 13 rm -f /usr/bin/sds 14 15 clean: 16 rm -rf sds testserver