From 6e743a8d2f6912be98efd1b6fa99d3c7bf662969 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Wed, 17 Nov 2021 04:00:30 +0500 Subject: [PATCH] Better organize Makefile --- Makefile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 8876344..3f7bf36 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ # PolytreeWM - tiling window manager # See LICENSE file for copyright and license details. +all: polytreewm + include config/1-custom.mk include config/2-generated.mk include config/3-custom.mk @@ -49,14 +51,6 @@ DWM_SRC = \ OBJ = ${SRC:.c=.o} DWM_HDR = ${DWM_SRC:.c=.h} -all: options polytreewm - -options: - @echo PolytreeWM build options: - @echo "CFLAGS = ${CFLAGS}" - @echo "LDFLAGS = ${LDFLAGS}" - @echo "CC = ${CC}" - polytreewm: ${OBJ} ${CC} -o $@ ${OBJ} ${LDFLAGS} @@ -91,4 +85,4 @@ uninstall: ${DESTDIR}${BINDIR}/polytreewm \ ${DESTDIR}${MANDIR}/man1/polytreewm.1 -.PHONY: all options clean distclean install uninstall +.PHONY: all clean distclean install uninstall