URI: 
       Makefile - energy - measure energy usage
  HTML git clone git://bitreich.org/energy  git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/energy
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
   DIR LICENSE
       ---
       Makefile (492B)
       ---
            1 PREFIX ?= /usr/local
            2 MANPREFIX ?= ${PREFIX}/share/man
            3 
            4 CFLAGS?=-O -Wall -Wextra -pedantic
            5 CC?=cc
            6 
            7 all: bin/energy
            8 
            9 bin/%: %.c
           10         mkdir -p bin
           11         $(CC) -o $@ $< $(CFLAGS)
           12 
           13 install: all
           14         @echo \# Installing executable files to ${PREFIX}/bin
           15         @mkdir -p ${PREFIX}/bin/
           16         install bin/* ${PREFIX}/bin/
           17         @echo \# Installing manual page to ${MANPREFIX}/man1
           18         @mkdir -p ${MANPREFIX}/man1/
           19         @echo \# Installing manpages to ${MANPREFIX}/man1/
           20         install -D -m 644 man/* ${MANPREFIX}/man1/
           21 
           22 .PHONY: all install