Skip to content

Commit

Permalink
build(make): add target uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
dbohdan committed Oct 3, 2024
1 parent a781472 commit 1d49402
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@ install-bin: hicolor
install-include: hicolor.h
install -m 0644 $< $(DESTDIR)$(PREFIX)/include

uninstall: uninstall-bin uninstall-include
uninstall-bin:
-rm $(DESTDIR)$(PREFIX)/bin/hicolor
uninstall-include:
-rm $(DESTDIR)$(PREFIX)/include/hicolor.h

release: clean-no-ext test
cp hicolor hicolor-v"$$(./hicolor version | head -n 1 | awk '{ print $$2 }')"-"$$(uname | tr 'A-Z' 'a-z')"-"$$(uname -m)"

test: all
tests/hicolor.test

.PHONY: all clean clean-exe clean-no-ext install install-bin install-include release test
.PHONY: all clean clean-exe clean-no-ext install install-bin install-include release test uninstall uninstall-bin uninstall-include

0 comments on commit 1d49402

Please sign in to comment.