Skip to content

Commit

Permalink
only cleanup debian package data when it was created
Browse files Browse the repository at this point in the history
  • Loading branch information
gs-kamnas authored and Skylab committed Aug 13, 2024
1 parent c207f05 commit 69d6268
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,12 @@ clean:

distclean: clean
ifeq ($(findstring CYGWIN,$(OS)),)
if command -v dh_testdir && [ `id -u` = 0 ]; then \
linux/debian/rules clean; \
elif command -v dh_testdir; then \
fakeroot linux/debian/rules clean; \
if [ -L debian ]; then \
if command -v dh_testdir && [ `id -u` = 0 ]; then \
debian/rules clean; \
elif command -v dh_testdir; then \
fakeroot debian/rules clean; \
fi \
fi
endif
@rm -f *.exe *.deb *.rpm *.tgz *.tar.gz *.tar.bz2 *.zip *.exe \
Expand Down

0 comments on commit 69d6268

Please sign in to comment.