commit f756fa0e6eb231e79f98f479595a0191f7fc4d98
parent 2cfd9e9ad20c7253ec8fe248bf28290737cc2eb2
Author: bdmfegys@duck.com <bdmfegys@duck.com>
Date: Sun, 28 Apr 2024 14:06:53 -0400
Makefile: append WALLPAPERDIR and GIFDIR definitions to beginning of config.h when copied in 'config.h' target
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -22,6 +22,8 @@ ${OBJ}: config.h config.mk
config.h:
cp config.def.h $@
+ sed -i "1i#define GIFDIR \"${HOME}/${GIFDIR}\"" config.h
+ sed -i "1i#define WALLPAPERDIR \"${HOME}/${WALLPAPERDIR}\"" config.h
birdwm: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}