swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit 7a0645563c89d24bdf43999abe62b70ed3f3c238
parent 0e1c116e2941cf247a70b6cbe4118c58cf332877
Author: Michael Forney <mforney@mforney.org>
Date:   Tue, 19 Nov 2013 17:02:27 -0800

Fix dependencies

Diffstat:
MMakefile | 4+++-
MMakefile.common | 3+++
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -28,7 +28,7 @@ define check_deps @$(PKG_CONFIG) --exists --print-errors $2 endef -compile = $(call quiet,CC) $(CFLAGS) $(CPPFLAGS) -I . -c -MMD -MP -MF .deps/$*.d -o $@ $< +compile = $(call quiet,CC) $(CFLAGS) $(CPPFLAGS) -I . -c -MMD -MP -MF .deps/$(basename $<).d -o $@ $< link = $(call quiet,CCLD,$(CC)) $(CFLAGS) -o $@ $^ .PHONY: check-dependencies @@ -59,3 +59,5 @@ $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(INCLUDEDIR) $(DESTDIR)$(PKGC clean: rm -f $(CLEAN_FILES) +-include .deps/*/*.d + diff --git a/Makefile.common b/Makefile.common @@ -9,5 +9,8 @@ build-$(dir): $($(dir)_TARGETS) .PHONY: install-$(dir) install-$(dir): +.deps/$(dir): + @mkdir -p "$@" + CLEAN_FILES += $($(dir)_TARGETS)