Skip to content

Commit

Permalink
make: add VER option
Browse files Browse the repository at this point in the history
  • Loading branch information
pymumu committed Nov 27, 2022
1 parent 16258e5 commit 8419990
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ SYSCONFDIR := /etc
RUNSTATEDIR := /var/run
SYSTEMDSYSTEMUNITDIR := $(shell ${PKG_CONFIG} --variable=systemdsystemunitdir systemd)
FAN_CONTROL_SYSTEMD = systemd/fan-control.service
VER := "1.0.0"

.PHONY: all clean install FAN_CONTROL_BIN package
all: package
Expand All @@ -42,7 +43,7 @@ $(FAN_CONTROL_SYSTEMD): systemd/fan-control.service.in
sed -i 's|@RUNSTATEDIR@|$(RUNSTATEDIR)|' $@

package: FAN_CONTROL_BIN
cd package && ./make.sh -o $(shell pwd)
cd package && ./make.sh -o $(shell pwd) --ver ${VER}

clean:
$(MAKE) $(MFLAGS) -C src clean
Expand Down
2 changes: 1 addition & 1 deletion src/fan-control.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void show_help(void)
"Usage: fan-control [option]\n"
"Options:\n"
" -d start as a daemon service.\n"
" -p specify a pid file path (default: /run/fan-control.pid)\n"
" -p specify a pid file path (default: /run/fan-control.pid)\n"
" -s [0-6] set fan speed.\n"
" -h show help message.\n"
"\n";
Expand Down

0 comments on commit 8419990

Please sign in to comment.