swc

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

commit 58ce44667c5a30e956151ed0dcfebdce4354712d
parent 7a0645563c89d24bdf43999abe62b70ed3f3c238
Author: Michael Forney <mforney@mforney.org>
Date:   Tue, 19 Nov 2013 17:04:37 -0800

Use foreach

Diffstat:
MMakefile | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -31,6 +31,9 @@ endef compile = $(call quiet,CC) $(CFLAGS) $(CPPFLAGS) -I . -c -MMD -MP -MF .deps/$(basename $<).d -o $@ $< link = $(call quiet,CCLD,$(CC)) $(CFLAGS) -o $@ $^ +$(foreach dir,BIN LIB INCLUDE PKGCONFIG,$(DESTDIR)$(dir)): + mkdir -p "$@" + .PHONY: check-dependencies check-dependencies: $(SUBDIRS:%=check-dependencies-%) @@ -52,9 +55,6 @@ install-swc.pc: swc.pc | $(DESTDIR)$(PKGCONFIGDIR) .PHONY: install install: $(SUBDIRS:%=install-%) $(TARGETS:%=install-%) -$(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(INCLUDEDIR) $(DESTDIR)$(PKGCONFIGDIR): - mkdir -p "$@" - .PHONY: clean clean: rm -f $(CLEAN_FILES)