human

convert bytes to human readable formats
git clone git://git.2f30.org/human
Log | Files | Refs | README | LICENSE

Makefile (569B)


      1 PREFIX:=/usr/local
      2 MANPREFIX:=${PREFIX}/share/man
      3 
      4 CC = cc
      5 LD= ${CC}
      6 RM = rm
      7 CFLAGS = -Wall
      8 LDFLAGS =
      9 
     10 .SUFFIXES: .c .o .gz
     11 .PHONY : all clean install uninstall
     12 
     13 .c.o:
     14 	@echo "CC $<"
     15 	@${CC} -c ${CFLAGS} $< -o $@
     16 
     17 human: human.o
     18 	@echo "LD human"
     19 	@${LD} $^ -o $@ ${LDFLAGS}
     20 
     21 all : human human.1
     22 
     23 clean :
     24 	${RM} -f human *.o *.gz *~
     25 
     26 install: human human.1
     27 	install -D -m 0755 human ${DESTDIR}${PREFIX}/bin/human
     28 	install -D -m 0644 human.1 ${DESTDIR}${MANPREFIX}/man1/human.1
     29 
     30 uninstall:
     31 	${RM} ${DESTDIR}${PREFIX}/bin/human
     32 	${RM} ${DESTDIR}${MANPREFIX}/man1/human.1