Skip to content

Commit

Permalink
Merge pull request #516 from NVieville/fedora
Browse files Browse the repository at this point in the history
Fedora
  • Loading branch information
chrisspen authored Apr 28, 2019
2 parents c08bfd7 + d8360ca commit 13df143
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ ifeq ($(strip $(DESTDIR)),)
INSTALLBASE = $(HOME)/.local/share/gnome-shell/extensions
SUDO=
else
INSTALLBASE = $(DESTDIR)usr/share/gnome-shell/extensions
INSTALLBASE = $(DESTDIR)/usr/share/gnome-shell/extensions
ifeq ($(BUILD_FOR_RPM),1)
SUDO=
else
SUDO=sudo
endif
endif

ifdef VERSION
VSTRING = _v$(VERSION)
Expand Down Expand Up @@ -96,13 +100,17 @@ install: remove build
$(call msg,$@,$(SUDO) $(INSTALLBASE)/$(INSTALLNAME))
$(Q) $(SUDO) mkdir -p $(INSTALLBASE)/$(INSTALLNAME)
$(Q) $(SUDO) cp $(VV) -r ./_build/* $(INSTALLBASE)/$(INSTALLNAME)/
ifeq ($(strip $(BUILD_FOR_RPM)),)
$(Q) $(MAKE) -s reload
endif
$(call msg,$@,OK)

remove:
$(call msg,$@,$(SUDO) $(INSTALLBASE)/$(INSTALLNAME))
$(Q) $(SUDO) rm $(VV) -fr $(INSTALLBASE)/$(INSTALLNAME)
ifeq ($(strip $(BUILD_FOR_RPM)),)
$(Q) $(MAKE) -s reload
endif
$(call msg,$@,OK)

reload:
Expand Down

0 comments on commit 13df143

Please sign in to comment.