1
0
Fork 0
mirror of https://github.com/diamondburned/cchat-gtk.git synced 2024-12-27 14:27:35 +00:00
cchat-gtk/Makefile
Diego Diaz 1adb62bef1
Add Makefile (#13)
* Added support for Makefile

Added `make` construction support

* Fix Typo
2021-02-04 20:07:55 -08:00

25 lines
583 B
Makefile

BIN ?= cchat-gtk
GO ?= go
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
DATADIR ?= $(PREFIX)/share
cchat-gtk:
$(GO) build -v -o bin/$(BIN)
@strip bin/$(BIN)
install:
install -Dm775 bin/$(BIN) $(DESTDIR)$(BINDIR)/$(BIN)
install -Dm775 cchat-gtk.desktop $(DESTDIR)$(DATADIR)/applications/cchat-gtk.desktop
install -Dm775 icons/cchat.png $(DESTDIR)$(DATADIR)/pixmaps/cchat-gtk.png
uninstall:
rm -rf $(DESTDIR)$(BINDIR)/$(BIN)
rm -rf $(DESTDIR)$(DATADIR)/pixmaps/cchat-gtk.png
rm -rf $(DESTDIR)$(DATADIR)/applications/cchat-gtk.desktop
clean:
rm -rf bin/
.PHONY: cchat-gtk