Skip to content

Commit eba6b46

Browse files
committed
fix: Clean build artifacts for successful repackage
The clean target in the Makefile wasn't removing all the temporary build files and directories, specifically build and jsonnet.egg-info. This caused a problem when trying to repackage the source for Debian. For more details about the problem, see the following bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1047367 This patch simply adds these to the clean command, ensuring a truly clean build environment, which is required by Debian policy. This change isn't just for Debian; it will also benefit other distributions that package Jsonnet, as it ensures a consistent and reliable build process across all platforms.
1 parent 5ad56d2 commit eba6b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ $(RELEASE_FILE): bins
224224
dist: $(RELEASE_FILE)
225225

226226
clean:
227-
rm -vf */*~ *~ .*~ */.*.swp .*.swp $(ALL) *.o core/*.jsonnet.h Makefile.depend *.so.* $(RELEASE_FILE)
227+
rm -rvf */*~ *~ .*~ */.*.swp .*.swp $(ALL) *.o core/*.jsonnet.h Makefile.depend *.so.* build jsonnet.egg-info $(RELEASE_FILE)
228228

229229
-include Makefile.depend
230230

0 commit comments

Comments
 (0)