[hackers] [scc] Untrack config.mk and provide a default || Quentin Carbonneaux

From: <git_AT_suckless.org>
Date: Mon, 12 Dec 2016 03:29:34 +0100 (CET)

commit 8602956fac4b220603a14c18fb9f9adfff9044bb
Author: Quentin Carbonneaux <quentin_AT_c9x.me>
AuthorDate: Sun Dec 11 21:26:14 2016 -0500
Commit: Quentin Carbonneaux <quentin_AT_c9x.me>
CommitDate: Sun Dec 11 21:26:14 2016 -0500

    Untrack config.mk and provide a default

diff --git a/Makefile b/Makefile
index a755a69..85dc204 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -60,3 +60,7 @@ clean:
 
 distclean: clean
         rm -rf bin
+ rm config.mk
+
+config.mk:
+ cp $_AT_.def $@
diff --git a/config.mk b/config.mk
deleted file mode 100644
index b1cc627..0000000
--- a/config.mk
+++ /dev/null
_AT_@ -1,35 +0,0 @@
-# scc version
-VERSION = 0.1
-
-## Customize below to fit your system
-ARCHS = z80 i386-sysv amd64-sysv qbe
-# default architecure used in nested makefiles
-ARCH = qbe
-DRIVER = posix
-
-# Can be c89 or c99
-STD = c99
-
-# paths
-PREFIX = $(HOME)
-MANPREFIX = $(PREFIX)/share/man
-
-# scc expects to be built by a C99 compiler
-# if your system is not at least POSIX 2004 compatible, adjust CC
-# CC = c99
-# AR = ar
-
-# for Plan9 add -D_SUSV2_SOURCE
-SCC_CFLAGS = -DARCH=\"$(ARCH)\" \
- $(CSTDINC) \
- -DPREFIX=\"$(PREFIX)\" \
- -DNDEBUG \
- $(CFLAGS)
-
-SCC_LDFLAGS = $(LDFLAGS)
-
-.c.o:
- $(CC) $(SCC_CFLAGS) -o $_AT_ -c $<
-
-.c:
- $(CC) $(SCC_CFLAGS) $(SCC_LDFLAGS) -o $_AT_ $<
diff --git a/config.mk.def b/config.mk.def
new file mode 100644
index 0000000..b1cc627
--- /dev/null
+++ b/config.mk.def
_AT_@ -0,0 +1,35 @@
+# scc version
+VERSION = 0.1
+
+## Customize below to fit your system
+ARCHS = z80 i386-sysv amd64-sysv qbe
+# default architecure used in nested makefiles
+ARCH = qbe
+DRIVER = posix
+
+# Can be c89 or c99
+STD = c99
+
+# paths
+PREFIX = $(HOME)
+MANPREFIX = $(PREFIX)/share/man
+
+# scc expects to be built by a C99 compiler
+# if your system is not at least POSIX 2004 compatible, adjust CC
+# CC = c99
+# AR = ar
+
+# for Plan9 add -D_SUSV2_SOURCE
+SCC_CFLAGS = -DARCH=\"$(ARCH)\" \
+ $(CSTDINC) \
+ -DPREFIX=\"$(PREFIX)\" \
+ -DNDEBUG \
+ $(CFLAGS)
+
+SCC_LDFLAGS = $(LDFLAGS)
+
+.c.o:
+ $(CC) $(SCC_CFLAGS) -o $_AT_ -c $<
+
+.c:
+ $(CC) $(SCC_CFLAGS) $(SCC_LDFLAGS) -o $_AT_ $<
Received on Mon Dec 12 2016 - 03:29:34 CET

This archive was generated by hypermail 2.3.0 : Mon Dec 12 2016 - 03:36:17 CET