From 94eca64e8764ab400f9e38211b4fe0794d43246c Mon Sep 17 00:00:00 2001 From: Evan Gates Date: Tue, 11 Oct 2016 10:28:21 -0700 Subject: [PATCH] Makefile fixes don't use suffix rule def.h.h as it overwrites config.h when config.def.h is updated remove LDLIBS as it's not used .PHONY: takes targets as prerequisites not as commands --- Makefile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 7e2fde5..32ca146 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ BIN = sinit all: $(BIN) $(BIN): $(OBJ) - $(CC) $(LDFLAGS) -o $@ $(OBJ) $(LDLIBS) + $(CC) $(LDFLAGS) -o $@ $(OBJ) $(OBJ): config.h @@ -30,10 +30,7 @@ dist: clean clean: rm -f $(BIN) $(OBJ) sinit-$(VERSION).tar.gz -.SUFFIXES: .def.h +config.h: + cp config.def.h $@ -.def.h.h: - cp $< $@ - -.PHONY: - all install uninstall dist clean +.PHONY: all install uninstall dist clean -- 2.10.0