<NME> Makefile
<BEF> NAME = gnome-shell-screenshot
UUID = $(NAME)@ttll.de
SCHEMA = org.gnome.shell.extensions.screenshot.gschema.xml

LANGUAGES = bg ca cs de el es eu fr id_ID it pl pt_BR ru tr uk zh_CN nl

all: update_dependencies
	make archive

update_dependencies:
	git submodule update --init

-include gselib/make/gnome-shell-extension.mk

SOURCE += src/empty64.png res/org.freedesktop.portal.Screenshot.xml

archive: $(ZIPFILE)

uninstall:
	-rm -r $(EXTENSION_PATH)


$(ZIPFILE): $(SOURCE) schemas
	-rm $(ZIPFILE)
ifndef SKIP_LINT
	eslint .
endif
	cd src && zip -r ../$(ZIPFILE) \
	   $(patsubst src/%,%,$(SOURCE)) \
	   $(patsubst src/%,%,$(MO_FILES))

<MSG> Remove `eslint` from make install

It is often not installed and breaks manual install from git repo.

Add `make package` target instead.

<DFF> @@ -29,6 +29,10 @@ translations: $(MO_FILES)
 
 archive: $(ZIPFILE)
 
+package:
+	make lint
+	make archive
+
 uninstall:
 	-rm -r $(EXTENSION_PATH)
 
@@ -61,9 +65,6 @@ src/locale/%/LC_MESSAGES/gnome-shell-screenshot.mo: src/locale/%/*.po
 
 $(ZIPFILE): $(SOURCE) schemas
 	-rm $(ZIPFILE)
-ifndef SKIP_LINT
-	eslint .
-endif
 	cd src && zip -r ../$(ZIPFILE) \
 	   $(patsubst src/%,%,$(SOURCE)) \
 	   $(patsubst src/%,%,$(MO_FILES))

Remove `eslint` from make install