Skip to content

Commit 2593fe4

Browse files
committed
Makefile cleanups for build and dist directories
1 parent a4f82a5 commit 2593fe4

20 files changed

Lines changed: 249 additions & 274 deletions

File tree

.github/workflows/build-workflow.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
sudo apt install build-essential make python python-yaml bc git
1313
- name: Build
1414
run: |
15-
make duk dukd duk-g++ duk-clang duk-fuzzilli
15+
make build/duk build/dukd build/duk-g++ build/duk-clang build/duk-fuzzilli
1616
- name: Test
1717
run: |
18-
./duk -e "print(Duktape.env); print('Hello world!');"
19-
./duk dist-files/mandel.js
18+
build/duk -e "print(Duktape.env); print('Hello world!');"
19+
build/duk dist-files/mandel.js
2020
build_duk_macos:
2121
name: Duk macOS 10.15
2222
runs-on: macos-10.15
@@ -28,11 +28,11 @@ jobs:
2828
python2 -m pip install PyYAML
2929
- name: Build
3030
run: |
31-
make duk
31+
make build/duk
3232
- name: Test
3333
run: |
34-
./duk -e "print(Duktape.env); print('Hello world!');"
35-
./duk dist-files/mandel.js
34+
build/duk -e "print(Duktape.env); print('Hello world!');"
35+
build/duk dist-files/mandel.js
3636
build_duk_windows:
3737
name: Duk VS2019
3838
runs-on: windows-2019

.github/workflows/test-workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
sudo apt install build-essential make python python-yaml bc git nodejs
1313
- name: Build
1414
run: |
15-
make duk
15+
make build/duk
1616
- name: Ecmatest
1717
run: |
1818
make ecmatest
@@ -27,7 +27,7 @@ jobs:
2727
sudo apt install build-essential make python python-yaml bc git nodejs
2828
- name: Build
2929
run: |
30-
make duk
30+
make build/duk
3131
- name: Apitest
3232
run: |
3333
make apitest

.gitignore

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,8 @@ ms_print.*
88
/*.gcda
99
/*.su
1010
/_*
11-
/duk.*
1211
/duk
13-
/dukd
14-
/dukd.*
15-
/duk-clang
16-
/duk-fuzzilli
17-
/duk-sanitize-clang
18-
/duk-g++
19-
/duk-size
20-
/duk-perf
21-
/duk-perf.*
22-
/duk-perf-*
23-
/duk-pgo
24-
/duk-pgo.*
25-
/duk-pgo-*
26-
/duk-perf-pgo
27-
/duk-perf-pgo.*
28-
/duk-perf-pgo-*
29-
/duk-low
30-
/duk-low-norefc
31-
/duk-low-rom
32-
/libduktape.*
3312
/runtests/package-lock.json
34-
/docker-input.zip
35-
/docker-output.zip
3613
/docker/*/gitconfig
3714
/docker/*/prepare_repo.sh
3815
/deps/
@@ -42,11 +19,8 @@ ms_print.*
4219
/tmp/
4320
/site/
4421
/stuff/
45-
/duktape-releases/
4622
/doc/*.pdf
4723
/runtests/node_modules/
48-
/dukweb.js
49-
/dukweb.wasm
5024
/debugger/jquery-ui-1.11.2.zip
5125
/debugger/jquery-ui-1.11.2/
5226
/debugger/node_modules/

Makefile

Lines changed: 183 additions & 188 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ These are also **intended for Linux only**. For example:
137137
# Build Docker images. This takes a long time.
138138
$ make docker-images
139139

140-
# Equivalent of 'make dist', but runs inside a container.
141-
$ make docker-dist-src-wd
140+
# Equivalent of 'make dist-source', but runs inside a container.
141+
$ make docker-dist-source-wd
142142

143143
# Run a shell with /work/duktape containing a disposable master snapshot.
144144
$ make docker-shell-master

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ build_script:
2525
# Make dist, ensure it works on Windows too.
2626

2727
- cmd: cd C:\projects\duktape
28+
- cmd: mkdir dist
2829
- cmd: python util\dist.py
2930

3031
# Prep a few variants of headers and sources.

doc/release-checklist.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ Checklist for ordinary releases
209209
push it to the public repo until the tag is certain not to move anymore.
210210

211211
- There can be commits to the repo after tagging but nothing that will
212-
affect "make dist" output.
212+
affect "make dist/source" output.
213213

214214
- Make sure the tag is in the master commit chain, so that git describe will
215215
provide a useful output for dist packages built after the release

docker/duktape-base-ubuntu-18.04-s390x/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ RUN echo "=== Prepare duktape-prep repo ===" && \
5151
cp -r repo-snapshots/duktape duktape-prep && \
5252
cp -r repo-snapshots/duktape-releases duktape-prep/duktape-releases && \
5353
cd duktape-prep && \
54-
make linenoise && \
54+
make deps/linenoise && \
5555
make clean
5656

5757
RUN echo "=== Versions ===" && \

docker/duktape-base-ubuntu-18.04-x64/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ RUN echo "=== Prepare duktape-prep repo ===" && \
8080
cp -r repo-snapshots/duktape duktape-prep && \
8181
cp -r repo-snapshots/duktape-releases duktape-prep/duktape-releases && \
8282
cd duktape-prep && \
83-
make runtestsdeps linenoise UglifyJS2 && \
84-
make duktape-releases lz-string jquery-1.11.2.js && \
85-
make luajs underscore lodash bluebird.js closure-compiler && \
83+
make runtestsdeps deps/linenoise deps/UglifyJS && \
84+
make deps/duktape-releases deps/lz-string deps/jquery-1.11.2.js && \
85+
make deps/luajs deps/underscore deps/lodash deps/bluebird.js deps/closure-compiler && \
8686
make clean
8787

8888
# Initialize Emscripten cached bytecode files.

docker/duktape-dist-ubuntu-18.04-x64/run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -e
77
source emsdk/emsdk_env.sh
88

99
cd duktape
10-
make clean dist-src
11-
ls -l duktape-*.tar.*
12-
zip /tmp/out.zip duktape-*.tar.*
10+
make clean dist-source
11+
ls -l dist
12+
zip -r /tmp/out.zip dist
1313
cat /tmp/out.zip

0 commit comments

Comments
 (0)