[hackers] [scc] Move .POSIX to the beginning of Makefiles || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 27 Nov 2015 19:27:54 +0100 (CET)

commit e043e6aa574967384504a019ccfc1bb61fe570dc
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Nov 27 19:26:17 2015 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Nov 27 19:26:17 2015 +0100

    Move .POSIX to the beginning of Makefiles
    
    Evan Gates noted this isuue, which can be read in [1]
    
    [1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html#tag_20_76_13_04

diff --git a/Makefile b/Makefile
index f3df552..5a23e20 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -1,4 +1,5 @@
 # scc - Suckless C Compiler
+.POSIX:
 
 include config.mk
 
_AT_@ -16,4 +17,3 @@ all clean:
                 (cd $$i; ${MAKE} $(MAKEFLAGS) $_AT_ || exit); \
         done;
 
-.POSIX:
diff --git a/cc1/Makefile b/cc1/Makefile
index 3ad18ee..02938e6 100644
--- a/cc1/Makefile
+++ b/cc1/Makefile
_AT_@ -1,3 +1,5 @@
+.POSIX:
+
 include ../config.mk
 
 OBJS = types.o decl.o lex.o error.o symbol.o main.o expr.o \
_AT_@ -5,7 +7,6 @@ OBJS = types.o decl.o lex.o error.o symbol.o main.o expr.o \
 
 all: cc1
 
-.POSIX:
 
 $(OBJS) : cc1.h ../inc/cc.h ../inc/sizes.h arch/$(ARCH)/arch.h
 
diff --git a/cc2/Makefile b/cc2/Makefile
index dbb1e52..e6f7eeb 100644
--- a/cc2/Makefile
+++ b/cc2/Makefile
_AT_@ -1,10 +1,11 @@
+.POSIX:
+
 include ../config.mk
 
 OBJS = main.o parser.o cgen.o code.o optm.o peep.o
 
 all: cc2
 
-.POSIX:
 
 $(OBJS): ../inc/cc.h ../inc/sizes.h cc2.h
 main.o: error.h
Received on Fri Nov 27 2015 - 19:27:54 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 27 2015 - 19:36:12 CET