mirror of
https://gitlab.com/EternalWanderer/maim-utils
synced 2025-05-06 06:36:40 +02:00
Basic working package
This commit is contained in:
parent
3d7a0dc1db
commit
20d51b44f3
6 changed files with 123 additions and 4 deletions
36
Makefile
Normal file
36
Makefile
Normal file
|
@ -0,0 +1,36 @@
|
|||
NAME = maim-utils
|
||||
VERSION = 1.0
|
||||
DIRNAME= $(NAME)-$(VERSION)
|
||||
MANPAGE = $(NAME).1
|
||||
MANPREFIX = $(PREFIX)/share/man
|
||||
|
||||
$(MANPAGE): $(MANPAGE).scd
|
||||
scdoc < $< > $@
|
||||
|
||||
dist:
|
||||
mkdir -p $(DIRNAME)
|
||||
cp -R $(NAME) $(MANPAGE).scd Makefile LICENCE README.md zsh.completion $(DIRNAME)
|
||||
tar -cf $(DIRNAME).tar $(DIRNAME)
|
||||
gzip $(DIRNAME).tar
|
||||
rm -rf $(DIRNAME)
|
||||
|
||||
clean:
|
||||
rm $(MANPAGE) $(DIRNAME).tar.gz
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue