Skip to content

Commit 5991468

Browse files
committed
Makefile whitespace consistency in dist-files
1 parent e73164e commit 5991468

9 files changed

Lines changed: 27 additions & 27 deletions

dist-files/Makefile.cmdline

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ DUKTAPE_SOURCES = src/duktape.c
88
CMDLINE_SOURCES = \
99
examples/cmdline/duk_cmdline.c
1010

11-
CC = gcc
12-
CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
11+
CC = gcc
12+
CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
1313
CCOPTS += -I./examples/cmdline -I./src # duktape.h and duk_config.h must be in include path
14-
CCLIBS = -lm
14+
CCLIBS = -lm
1515

1616
# Enable print() and alert() for command line using an optional extra module.
1717
CCOPTS += -DDUK_CMDLINE_PRINTALERT_SUPPORT -I./extras/print-alert
@@ -33,13 +33,13 @@ CMDLINE_SOURCES += extras/module-duktape/duk_module_duktape.c
3333
# will cause some harmless compilation warnings.
3434
#CCOPTS += -DDUK_CMDLINE_FANCY -I./linenoise
3535
#CMDLINE_SOURCES += linenoise/linenoise.c
36-
#duk: linenoise
36+
#duk: linenoise
3737

3838
# Use the tools/configure.py utility to modify Duktape default configuration:
3939
# http://duktape.org/guide.html#compiling
4040
# http://wiki.duktape.org/Configuring.html
4141

42-
duk: $(DUKTAPE_SOURCES) $(CMDLINE_SOURCES)
42+
duk: $(DUKTAPE_SOURCES) $(CMDLINE_SOURCES)
4343
$(CC) -o $@ $(DEFINES) $(CCOPTS) $(DUKTAPE_SOURCES) $(CMDLINE_SOURCES) $(CCLIBS)
4444

4545
linenoise/linenoise.c: linenoise

dist-files/Makefile.codepage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CC = gcc
1+
CC = gcc
22

33
codepage:
44
$(CC) -o $@ -std=c99 -O2 -Wall -Wextra -Isrc/ \

dist-files/Makefile.dukdebug

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ CMDLINE_SOURCES = \
1010
examples/cmdline/duk_cmdline.c \
1111
examples/debug-trans-socket/duk_trans_socket_unix.c
1212

13-
CC = gcc
14-
CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
13+
CC = gcc
14+
CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
1515
CCOPTS += -I./prep -I./examples/cmdline -I./examples/debug-trans-socket
1616
CCOPTS += -DDUK_CMDLINE_DEBUGGER_SUPPORT # enable --debugger in ./duk
17-
CCLIBS = -lm
17+
CCLIBS = -lm
1818

1919
# Enable a few optional modules.
2020
CCOPTS += -DDUK_CMDLINE_PRINTALERT_SUPPORT -I./extras/print-alert
@@ -28,7 +28,7 @@ CMDLINE_SOURCES += extras/module-duktape/duk_module_duktape.c
2828

2929
# Use tools/configure.py to prepare Duktape config header and sources with
3030
# custom configuration.
31-
duk: $(CMDLINE_SOURCES)
31+
duk: $(CMDLINE_SOURCES)
3232
@rm -rf prep
3333
python2 tools/configure.py \
3434
--source-directory src-input \

dist-files/Makefile.eval

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Example Makefile for building the eval example
33
#
44

5-
CC = gcc
5+
CC = gcc
66

77
eval:
88
$(CC) -o $@ -std=c99 -O2 -Wall -Wextra -Isrc/ \

dist-files/Makefile.eventloop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Example Makefile for building the eventloop example
33
#
44

5-
CC = gcc
5+
CC = gcc
66

77
evloop:
88
@echo "NOTE: The eventloop is example is intended to be used on Linux"

dist-files/Makefile.hello

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ DUKTAPE_SOURCES = src/duktape.c
1313
# Compiler options are quite flexible. GCC versions have a significant impact
1414
# on the size of -Os code, e.g. gcc-4.6 is much worse than gcc-4.5.
1515

16-
CC = gcc
17-
CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
16+
CC = gcc
17+
CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
1818
CCOPTS += -I./src # for combined sources
19-
CCLIBS = -lm
19+
CCLIBS = -lm
2020
DEFINES =
2121

2222
# If you want a 32-bit build on a 64-bit host
@@ -28,5 +28,5 @@ DEFINES =
2828

2929
# For debugging, use -O0 -g -ggdb, and don't add -fomit-frame-pointer
3030

31-
hello: $(DUKTAPE_SOURCES) examples/hello/hello.c
31+
hello: $(DUKTAPE_SOURCES) examples/hello/hello.c
3232
$(CC) -o $@ $(DEFINES) $(CCOPTS) $(DUKTAPE_SOURCES) examples/hello/hello.c $(CCLIBS)

dist-files/Makefile.jxpretty

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Example Makefile for building the jxpretty example
33
#
44

5-
CC = gcc
5+
CC = gcc
66

77
jxpretty:
88
$(CC) -o $@ -std=c99 -Wall -Wextra -O2 -Isrc \

dist-files/Makefile.sandbox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Example Makefile for building the sandbox example
33
#
44

5-
CC = gcc
5+
CC = gcc
66

77
sandbox:
88
$(CC) -o $@ -std=c99 -O2 -Wall -Wextra -Isrc/ \

dist-files/Makefile.sharedlibrary

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@
2424
# convention is to set soname version to (100*MAJOR + MINOR), e.g. 104 for
2525
# Duktape 1.4.x, so that it gets automatically bumped for major and minor
2626
# releases (potentially binary incompatible), but not for patch releases.
27-
DUK_VERSION=@DUK_VERSION@
28-
SONAME_VERSION=@SONAME_VERSION@
29-
REAL_VERSION=$(SONAME_VERSION).$(DUK_VERSION)
27+
DUK_VERSION = @DUK_VERSION@
28+
SONAME_VERSION = @SONAME_VERSION@
29+
REAL_VERSION = $(SONAME_VERSION).$(DUK_VERSION)
3030

3131
# Change to actual path for actual distribution packaging.
32-
INSTALL_PREFIX=/usr/local
32+
INSTALL_PREFIX = /usr/local
3333

3434
# The 'noline' variant may be more appropriate for some distributions; it
3535
# doesn't have #line directives in the combined source.
36-
DUKTAPE_SRCDIR=./src
37-
#DUKTAPE_SRCDIR=./src-noline
36+
DUKTAPE_SRCDIR = ./src
37+
#DUKTAPE_SRCDIR = ./src-noline
3838

39-
CC=gcc
39+
CC = gcc
4040

4141
.PHONY: all
4242
all: libduktape.so.$(REAL_VERSION) libduktaped.so.$(REAL_VERSION)
@@ -67,7 +67,7 @@ install: libduktape.so.$(REAL_VERSION) libduktaped.so.$(REAL_VERSION)
6767

6868
# Note: assumes /usr/local/include/ and /usr/local/lib/ are in include/link
6969
# path which may not be the case for all distributions.
70-
#CCOPTS=-I/usr/local/include -L/usr/local/lib
71-
CCOPTS=-I./examples/cmdline
70+
#CCOPTS = -I/usr/local/include -L/usr/local/lib
71+
CCOPTS = -I./examples/cmdline
7272
duk:
7373
$(CC) $(CCOPTS) -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm

0 commit comments

Comments
 (0)