From 9c8bc4e708647be16b6c69a28603c3542db9c100 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 26 Dec 2024 16:04:49 +0100 Subject: 5.3 --- Makefile | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b42c96e..af36567 100644 --- a/Makefile +++ b/Makefile @@ -6,17 +6,14 @@ include config.mk SRC = drw.c dmenu.c stest.c util.c OBJ = $(SRC:.c=.o) -all: options dmenu stest - -options: - @echo dmenu build options: - @echo "CFLAGS = $(CFLAGS)" - @echo "LDFLAGS = $(LDFLAGS)" - @echo "CC = $(CC)" +all: dmenu stest .c.o: $(CC) -c $(CFLAGS) $< +config.h: + cp config.def.h $@ + $(OBJ): arg.h config.h config.mk drw.h dmenu: dmenu.o drw.o util.o @@ -26,11 +23,11 @@ stest: stest.o $(CC) -o $@ stest.o $(LDFLAGS) clean: - rm -f dmenu stest $(OBJ) dmenu-$(VERSION).tar.gz + rm -f dmenu stest $(OBJ) dmenu-$(VERSION).tar.gz config.h dist: clean mkdir -p dmenu-$(VERSION) - cp LICENSE Makefile README arg.h config.h config.mk dmenu.1\ + cp LICENSE Makefile README arg.h config.def.h config.mk dmenu.1\ drw.h util.h dmenu_path dmenu_run stest.1 $(SRC)\ dmenu-$(VERSION) tar -cf dmenu-$(VERSION).tar dmenu-$(VERSION) @@ -58,4 +55,4 @@ uninstall: $(DESTDIR)$(MANPREFIX)/man1/dmenu.1\ $(DESTDIR)$(MANPREFIX)/man1/stest.1 -.PHONY: all options clean dist install uninstall +.PHONY: all clean dist install uninstall -- cgit v1.2.3