Makefile (493B)
1 CC=c99 2 DIR="${HOME}/.local/bin"# change to /bin for global installation 3 4 all: 5 $(CC) hex.c -o hex 6 $(CC) bin.c -o bin 7 $(CC) unhex.c -o unhex 8 $(CC) unbin.c -o unbin 9 $(CC) cyclic/cyclic.c -o cyclic/cyclic 10 11 install: 12 cp hex $(DIR)/hex 13 cp bin $(DIR)/bin 14 cp unhex $(DIR)/unhex 15 cp unbin $(DIR)/unbin 16 cp cyclic/cyclic $(DIR)/cyclic 17 18 uninstall: 19 rm $(DIR)/hex 20 rm $(DIR)/bin 21 rm $(DIR)/unhex 22 rm $(DIR)/unbin 23 rm $(DIR)/cyclic 24 25 clean: 26 rm hex 27 rm bin 28 rm unhex 29 rm unbin 30 rm cyclic/cyclic