Skip to content

Commit

Permalink
Makefile tweaks, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Shizcow committed Oct 29, 2023
1 parent 065806b commit 52258bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion config.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 5.5.2
VERSION = 5.5.3

# paths
PREFIX = /usr/local
Expand All @@ -13,6 +13,10 @@ CC =
# additional flags to be passed to rustc
RUSTFLAGS =

# additional flags to be passed to cargo
# only used on the final build
CARGOFLAGS =

# space seperated list of plugins to be compiled in
# run `make plugins` to see a list of available plugins
PLUGINS =
7 changes: 4 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ifeq ($(CC),)
CC = cc
endif

export CARGOFLAGS
export RUSTFLAGS
export PLUGINS
export VERSION
Expand All @@ -32,7 +33,7 @@ config: scaffold

dmenu: config
cd src && cargo run --release -p headers
cd src && cargo build -p dmenu-build --release $(XINERAMA_FLAGS)
cd src && cargo build -p dmenu-build --release $(XINERAMA_FLAGS) $(CARGOFLAGS)
cp src/target/release/dmenu target/

man: config
Expand All @@ -43,15 +44,15 @@ test: all
seq 1 100 | target/dmenu $(ARGS)

debug: config
cd src && cargo build -p dmenu-build $(XINERAMA_FLAGS)
cd src && cargo build -p dmenu-build $(XINERAMA_FLAGS) $(CARGOFLAGS)
cp src/target/debug/dmenu target
seq 1 100 | target/dmenu $(ARGS)

plugins:
cd src && cargo run --release -p config --bin list-plugins

stest:
cd src && cargo build -p stest --release $(XINERAMA_FLAGS)
cd src && cargo build -p stest --release $(XINERAMA_FLAGS) $(CARGOFLAGS)
cp src/target/release/stest target/
cp src/man/src/stest.1 target/

Expand Down

0 comments on commit 52258bb

Please sign in to comment.