Skip to content

Commit 74f341f

Browse files
committed
Fix parallel make; cleanup after build
1 parent 51a03dd commit 74f341f

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: gifski
22
Type: Package
33
Title: Highest Quality GIF Encoder
4-
Version: 1.32.0-1
4+
Version: 1.32.0-2
55
Authors@R: c(
66
person("Jeroen", "Ooms", ,"[email protected]", role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0002-4035-0289")),

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
1.32.0-2
2+
- Fix parallel make; cleanup after build
3+
14
1.32.0
25
- Update embedded libgifski to upstream 1.32.0
36

gifski.Rproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Version: 1.0
2+
ProjectId: bddc0489-96c5-4eab-bfcd-73fb3dd26e8c
23

34
RestoreWorkspace: Default
45
SaveWorkspace: Default

src/Makevars

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ STATLIB = $(LIBDIR)/libmyrustlib.a
33
PKG_CFLAGS = -pthread $(C_VISIBILITY)
44
PKG_LIBS = -L$(LIBDIR) -lmyrustlib -lresolv -pthread
55

6-
#all: clean
6+
all: $(SHLIB) cleanup
7+
78
$(SHLIB): $(STATLIB)
89

910
# CRAN wants to avoid writing in $HOME
@@ -16,5 +17,5 @@ $(STATLIB):
1617
rm -Rf $(CARGO_HOME) vendor || true
1718
rm -Rf $(LIBDIR)/build || true
1819

19-
clean:
20-
rm -Rf $(SHLIB) $(STATLIB) $(OBJECTS) myrustlib/target
20+
cleanup: $(SHLIB)
21+
rm -Rf $(STATLIB) myrustlib/target

src/Makevars.ucrt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ LIBDIR = myrustlib/target/$(TARGET)/release
33
STATLIB = $(LIBDIR)/libmyrustlib.a
44
PKG_LIBS = -L$(LIBDIR) -lmyrustlib -lws2_32 -ladvapi32 -luserenv -ldbghelp -lbcrypt -lntdll
55

6-
all: clean
6+
all: $(SHLIB) cleanup
77

88
$(SHLIB): $(STATLIB)
99

@@ -13,5 +13,5 @@ $(STATLIB):
1313
PATH="$(USERPROFILE)\\.cargo\\bin:$(PATH)" cargo build --target=$(TARGET) --release --manifest-path=myrustlib/Cargo.toml
1414
rm -Rf $(LIBDIR)/build
1515

16-
clean:
17-
rm -Rf $(SHLIB) $(STATLIB) $(OBJECTS) myrustlib/target
16+
cleanup: $(SHLIB)
17+
rm -Rf $(STATLIB) myrustlib/target

0 commit comments

Comments
 (0)