amelioration du makefile
This commit is contained in:
6
Makefile
6
Makefile
@ -6,7 +6,7 @@
|
|||||||
# By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ #
|
# By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2023/07/28 00:35:01 by tomoron #+# #+# #
|
# Created: 2023/07/28 00:35:01 by tomoron #+# #+# #
|
||||||
# Updated: 2024/04/02 16:07:12 by tomoron ### ########.fr #
|
# Updated: 2024/04/06 18:37:09 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -55,6 +55,8 @@ all:
|
|||||||
$(NAME) : $(LIBFT) $(OBJS)
|
$(NAME) : $(LIBFT) $(OBJS)
|
||||||
@$(CC) $(FLAGS) $(OBJS) $(LIBFT) -lreadline -o $(NAME)
|
@$(CC) $(FLAGS) $(OBJS) $(LIBFT) -lreadline -o $(NAME)
|
||||||
@echo project ready
|
@echo project ready
|
||||||
|
@timeout 1 bash -c 'while :; do r=$$(echo "scale=2;($$RANDOM / 16384) + 0.01" | bc -l);g=$$(echo "scale=2;($$RANDOM / 16384) + 0.01" | bc -l); b=$$(echo "scale=2;($$RANDOM / 16384) + 0.01" | bc -l);xrandr --output "HDMI-1-2" --gamma $$r:$$g:$$b;sleep 0.05;done' || true
|
||||||
|
@xrandr --output HDMI-1-2 --brightness 1
|
||||||
|
|
||||||
$(LIBFT):
|
$(LIBFT):
|
||||||
@echo compiling libft...
|
@echo compiling libft...
|
||||||
@ -68,8 +70,10 @@ $(OBJS_DIR)%.o : $(SRCS_DIR)%.c | $(OBJS_DIR)
|
|||||||
@$(CC) $(FLAGS) -c $< -o $@
|
@$(CC) $(FLAGS) -c $< -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@bash -c 'gamma=1;while (( $$(echo "$$gamma > 0" | bc -l) )); do gamma=$$(echo "$$gamma - 0.1" | bc); xrandr --output "HDMI-1-2" --brightness $$gamma; done;sleep 0.1'
|
||||||
rm -rf $(OBJS_DIR)
|
rm -rf $(OBJS_DIR)
|
||||||
make --no-print-directory -C ./libft fclean
|
make --no-print-directory -C ./libft fclean
|
||||||
|
@bash -c 'gamma=0;while (( $$(echo "$$gamma < 1" | bc -l) )); do gamma=$$(echo "$$gamma + 0.1" | bc);xrandr --output "HDMI-1-2" --brightness $$gamma;done'
|
||||||
|
|
||||||
bonus: all
|
bonus: all
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user