cchat-gtk/Makefile

28 lines
603 B
Makefile
Raw Permalink Normal View History

BIN ?= cchat-gtk
GO ?= go
STRIP ?= strip
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