Skip to content

Commit

Permalink
build(makefile/release): do not rm Win32 .exe
Browse files Browse the repository at this point in the history
  • Loading branch information
dbohdan committed Oct 15, 2023
1 parent 358fc2d commit ab6fb3b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ hicolor: cli.c hicolor.h vendor/cute_png.h
$(CC) $< -o $@ $(CFLAGS)
hicolor.exe: cli.c hicolor.h vendor/cute_png.h
$(WIN32_CC) $< -o $@ $(CFLAGS)
clean:
-rm -f hicolor hicolor.exe
clean: clean-no-ext clean-exe
clean-no-ext:
-rm -f hicolor
clean-exe:
-rm -f hicolor.exe

install: install-bin install-include
install-bin: hicolor
install $< $(DESTDIR)$(PREFIX)/bin/hicolor
install-include: hicolor.h
install -m 0644 $< $(DESTDIR)$(PREFIX)/include

release: clean test
release: clean-no-ext test
cp hicolor hicolor-v"$$(./hicolor version)"-"$$(uname | tr 'A-Z' 'a-z')"-"$$(uname -m)"

test: all
Expand Down

0 comments on commit ab6fb3b

Please sign in to comment.