Skip to content

Commit

Permalink
Add makefile, remove stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Sep 14, 2017
1 parent 4787e8c commit 21d32fe
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
build
31 changes: 31 additions & 0 deletions Makefile
@@ -0,0 +1,31 @@
# Basic Makefile

# Retrieve the UUID from ``metadata.json``
UUID = $(shell grep -E '^[ ]*"uuid":' ./metadata.json | sed 's@^[ ]*"uuid":[ ]*"\(.\+\)",[ ]*@\1@')

ifeq ($(strip $(DESTDIR)),)
INSTALLBASE = $(HOME)/.local/share/gnome-shell/extensions
else
INSTALLBASE = $(DESTDIR)/usr/share/gnome-shell/extensions
endif
INSTALLNAME = $(UUID)

$(info UUID is "$(UUID)")

.PHONY: all clean install zip-file

all: extension.js metadata.json
rm -rf build
mkdir -p build
cp $^ build

clean:
rm -rf build

install: all
rm -rf $(INSTALLBASE)/$(INSTALLNAME)
mkdir -p $(INSTALLBASE)/$(INSTALLNAME)
cp -r build/* $(INSTALLBASE)/$(INSTALLNAME)/

zip-file: all
cd build && zip -qr "../$(UUID)$(VSTRING).zip" .
7 changes: 6 additions & 1 deletion metadata.json
@@ -1 +1,6 @@
{"name": "Always Show Workspaces", "description": "Always show workspaces in overview", "uuid": "always-show-workspaces@system76.com", "shell-version": ["3.25.91"]}
{
"name": "Always Show Workspaces",
"description": "Always show workspaces in overview",
"uuid": "always-show-workspaces@system76.com",
"shell-version": ["3.25.91"]
}
Empty file removed stylesheet.css
Empty file.

0 comments on commit 21d32fe

Please sign in to comment.