maim-utils/Makefile

37 lines
893 B
Makefile
Raw Permalink Normal View History

2023-01-19 14:52:54 +01:00
NAME = maim-utils
VERSION = 1.0
DIRNAME= $(NAME)-$(VERSION)
MANPAGE = $(NAME).1
MANPREFIX = $(PREFIX)/share/man
$(MANPAGE): $(MANPAGE).scd
scdoc < $< > $@
dist:
mkdir -p $(DIRNAME)
2023-01-19 14:54:50 +01:00
cp -R $(NAME) $(MANPAGE).scd Makefile LICENSE README.md zsh.completion $(DIRNAME)
2023-01-19 14:52:54 +01:00
tar -cf $(DIRNAME).tar $(DIRNAME)
gzip $(DIRNAME).tar
rm -rf $(DIRNAME)
clean:
2023-01-19 17:33:24 +01:00
rm -f $(MANPAGE) $(DIRNAME).tar.gz
2023-01-19 14:52:54 +01:00
install: $(MANPAGE)
install -dm 0755 $(DESTDIR)$(PREFIX)/bin
install -m 0755 $(NAME) $(DESTDIR)$(PREFIX)/bin
install -dm 0755 $(DESTDIR)$(MANPREFIX)/man1
install -m 0644 $(MANPAGE) $(DESTDIR)$(MANPREFIX)/man1
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(NAME)\
$(DESTDIR)$MANPREFIX)/man1/$(MANPAGE)
package: dist
rsync --progress $(DIRNAME).tar.gz voidDroplet:/var/www/alpine/src/
rm -f /var/cache/distfiles/$(NAME)*
abuild checksum
abuild -r
.PHONY: all install dist uninstall package clean