From 4738c02bab7d8fd94c40fe87ca33100e73bccd4b Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 8 Feb 2019 18:31:35 -0500 Subject: clean up and merge redundant/duplicate targets --- Makefile | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5ab52a8a..2f9b1988 100644 --- a/Makefile +++ b/Makefile @@ -1,36 +1,22 @@ .POSIX: - -default: all - +.DEFAULT: all +.SILENT: all headers include include config.mk -INCLUDES=-I$(INCDIR) -I. -Inonstd/stubs -CFLAGS=$(INCLUDES) -g -fno-builtin -nostdinc -nostdlib -nodefaultlibs -Werror -Wall -Wextra -fPIC -D_POSIX_SOURCE - all: .deps.mk include - @$(MAKE) -f .deps.mk $@ - -.deps.mk: - $(MAKE) deps + $(MAKE) -f .deps.mk $@ -.headers.mk: - $(MAKE) deps - -deps: +deps .headers.mk .deps.mk: sh mkmf.sh $(STANDARD) - rm -rf .dep + +headers include: .headers.mk + $(MAKE) -f .headers.mk include ctags: ctags $$(find src -name \*.c) -include: - $(MAKE) headers - -headers: .headers.mk - @$(MAKE) -f .headers.mk $@ - clean: rm -rf $(OBJDIR) *.a extra-clean: clean - rm -rf .dep .headers.mk .deps.mk include + rm -rf .dep .*.mk include -- cgit v1.2.1