Opens .URL files in your favorite browser on Linux and FreeBSD.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
914 B

# SPDX-FileCopyrightText: 2021 Daniel Aleksandersen <>
# SPDX-License-Identifier: CC0-1.0
PREFIX ?= /usr/local
METADIR = $(PREFIX)/share/metainfo
DESKTOPDIR = $(PREFIX)/share/applications
all: build/url-open.desktop
build/url-open.desktop: src/url-open.desktop
-mkdir -p $(@D)
sed -e 's:Exec=url-open:Exec=$(BINDIR)/url-open:' $< > $@
install: src/ build/url-open.desktop src/no.priv.daniel.urlopen.metainfo.xml
install -D -m 0755 src/ $(BINDIR)/url-open
install -D -m 0644 src/url-open.desktop $(DESKTOPDIR)/url-open.desktop
install -D -m 0644 src/no.priv.daniel.urlopen.metainfo.xml $(METADIR)/no.priv.daniel.urlopen.metainfo.xml
checks: build/url-open.desktop
bash -n src/
desktop-file-validate build/url-open.desktop
appstreamcli validate src/no.priv.daniel.urlopen.metainfo.xml
reuse lint
rm -rf build/