Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 38 lines (27 sloc) 1.044 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
PROJECT = hangonman
INSTALL_FILES = audio css data fonts icon.png images index.html js LICENSE _locales manifest.json

# Boiler-plate code below here

VERSION := $(shell sed -nr 's/.*"version"\s*:\s*"([^"]+)".*/\1/p' manifest.json)
PROJVER = $(PROJECT)-$(VERSION)
ARCHIVE = $(PROJVER).tar.bz2

INSTALL_DIR = ${DESTDIR}/usr/share/$(PROJECT)
DESKTOP_DIR = ${DESTDIR}/usr/share/applications
ICON_DIR = ${DESTDIR}/usr/share/pixmaps

all:
@echo "Nothing to build"

.PHONEY: tag dist install

install:
mkdir -p $(INSTALL_DIR)/
cp -a $(INSTALL_FILES) $(INSTALL_DIR)/
mkdir -p $(DESKTOP_DIR)/
cp $(PROJECT).desktop $(DESKTOP_DIR)/
mkdir -p $(ICON_DIR)/
cp icon.png $(ICON_DIR)/$(PROJECT).png

tag:
@if ! git tag -l $(VERSION)|grep -q $(VERSION); then \
echo; echo '>>> Creating new tag "$(VERSION)". Do not forget to push this new tag with "git push --tags".'; echo; \
git tag $(VERSION); \
fi

dist: tag
@if [ -f $(ARCHIVE) ]; then rm $(ARCHIVE); fi
git archive --format=tar --prefix=$(PROJVER)/ $(VERSION) | gzip > $(ARCHIVE)


Something went wrong with that request. Please try again.