@ -5,7 +5,6 @@
i n c l u d e c o n f i g . m k
i n c l u d e c o n f i g . m k
REQ = util
REQ = util
HDR = arg.h config.h
COM = \
COM = \
battery\
battery\
cpu\
cpu\
@ -30,8 +29,8 @@ COM =\
all : slstatus
all : slstatus
slstatus : slstatus .o $( COM :=.o ) $( REQ :=.o )
slstatus : slstatus .o $( COM :=.o ) $( REQ :=.o )
slstatus.o : slstatus .c slstatus .h $( HDR ) $( REQ :=.h )
slstatus.o : slstatus .c slstatus .h arg .h config .h $( REQ :=.h )
$(COM := .o) : config.mk $( HDR) $( REQ:= .h)
$(COM := .o) : config.mk $( REQ:= .h)
config.h :
config.h :
cp config.def.h $@
cp config.def.h $@
@ -49,7 +48,7 @@ dist:
rm -rf " slstatus- $( VERSION) "
rm -rf " slstatus- $( VERSION) "
mkdir -p " slstatus- $( VERSION) "
mkdir -p " slstatus- $( VERSION) "
cp -R LICENSE Makefile README config.mk config.def.h \
cp -R LICENSE Makefile README config.mk config.def.h \
$( HDR) slstatus.c $( COM:= .c) $( REQ:= .c) $( REQ:= .h) \
arg.h slstatus.c $( COM:= .c) $( REQ:= .c) $( REQ:= .h) \
slstatus.1 " slstatus- $( VERSION) "
slstatus.1 " slstatus- $( VERSION) "
tar -cf - " slstatus- $( VERSION) " | gzip -c > " slstatus- $( VERSION) .tar.gz "
tar -cf - " slstatus- $( VERSION) " | gzip -c > " slstatus- $( VERSION) .tar.gz "
rm -rf " slstatus- $( VERSION) "
rm -rf " slstatus- $( VERSION) "