diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-05-14 06:56:43 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-05-14 07:11:11 +0200 |
commit | 0acaf5127ede7fc0eac16c950e4a450e76962ff9 (patch) | |
tree | 0230245f222f5b698247f445a1a650077f2cc5ab | |
parent | d1428ab987921f077b67a82b3aa3d569e1bfabce (diff) | |
download | drakx-0acaf5127ede7fc0eac16c950e4a450e76962ff9.tar drakx-0acaf5127ede7fc0eac16c950e4a450e76962ff9.tar.gz drakx-0acaf5127ede7fc0eac16c950e4a450e76962ff9.tar.bz2 drakx-0acaf5127ede7fc0eac16c950e4a450e76962ff9.tar.xz drakx-0acaf5127ede7fc0eac16c950e4a450e76962ff9.zip |
further simplify through substitution references
-rw-r--r-- | Makefile.common | 2 | ||||
-rw-r--r-- | Makefile.config | 6 | ||||
-rw-r--r-- | mdk-stage1/Makefile | 6 | ||||
-rw-r--r-- | mdk-stage1/Makefile.common | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/Makefile.common b/Makefile.common index 596723c43..11aa0414b 100644 --- a/Makefile.common +++ b/Makefile.common @@ -15,7 +15,7 @@ #***************************************************************************** ARCH := $(patsubst i%86,i386,$(shell uname -m)) -ARCH := $(patsubst sparc%,sparc,$(ARCH)) +ARCH := $(ARCH:sparc%=sparc) #- default lib is glibc (honoured by main Makefile whenever possible) L = GLIBC diff --git a/Makefile.config b/Makefile.config index ae1d66555..dabf65a5b 100644 --- a/Makefile.config +++ b/Makefile.config @@ -8,10 +8,10 @@ DISTRIB_DESCR = "$(_DISTRIB_NAME) release $(DISTRIB_VERSION)" # not config, but useful everywhere :) ARCH := $(patsubst i%86,i386,$(shell uname -m)) -ARCH := $(patsubst sparc%,sparc,$(ARCH)) -ARCH := $(patsubst arm%,arm,$(ARCH)) +ARCH := $(ARCH:sparc%=sparc) +ARCH := $(ARCH:arm%=arm) -PKG_ARCH := $(patsubst i386,i586,$(ARCH)) +PKG_ARCH := $(ARCH:i386=i586) ifeq (x86_64, $(ARCH)) LIB = lib64 diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile index b170b73d3..381b4b172 100644 --- a/mdk-stage1/Makefile +++ b/mdk-stage1/Makefile @@ -42,7 +42,7 @@ INIT_DEFS += $(GLIBC_INCLUDES) STAGE1_DEFS=-DDISABLE_KA -INITOBJS = $(subst .c,.o,$(INITSRC)) +INITOBJS = $(INITSRC:.c=.o) #- frontends @@ -52,7 +52,7 @@ NEWT_FRONTEND_LIBS = -lnewt -lslang STDIO_FRONTEND_SRC = stdio-frontend.c STDIO_FRONTEND_LIBS = -FRONTEND_OBJS = $(subst .c,.o,$($(F)_FRONTEND_SRC)) +FRONTEND_OBJS = $($(F)_FRONTEND_SRC:.c=.o) FRONTEND_LINK = $(FRONTEND_OBJS) $($(F)_FRONTEND_LIBS) @@ -87,7 +87,7 @@ STAGE1OBJS-NETWORK-STANDALONE = $(subst .c,-NETWORK-STANDALONE.o,$(STAGE1SRC) $( NETWORK_STANDALONE_DEFS = -DDISABLE_CDROM -DDISABLE_DISK -DENABLE_NETWORK_STANDALONE -DDISABLE_KA -STAGE1OBJS-FULL = $(subst .c,-FULL.o,$(STAGE1_ALLSRC)) +STAGE1OBJS-FULL = $(STAGE1_ALLSRC:.c=-FULL.o) BINS = init stage1 dhcp-client rescue-gui probe-modules diff --git a/mdk-stage1/Makefile.common b/mdk-stage1/Makefile.common index 2d344a866..36fa34d49 100644 --- a/mdk-stage1/Makefile.common +++ b/mdk-stage1/Makefile.common @@ -15,7 +15,7 @@ #***************************************************************************** ARCH := $(patsubst i%86,i386,$(shell uname -m)) -ARCH := $(patsubst arm%,arm,$(ARCH)) +ARCH := $(ARCH:arm%=arm) # DEBUG = 1 |