diff options
author | Mattias Andrée <m@maandree.se> | 2025-02-23 21:02:09 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-02-23 21:02:09 +0100 |
commit | a231ffb8d5e49cff8401137b89233d4f51c7f802 (patch) | |
tree | af51f561630a762c46fe4fd1f56cdff4df67e137 /Makefile | |
parent | Update e-mail (diff) | |
download | sysrss-master.tar.gz sysrss-master.tar.bz2 sysrss-master.tar.xz |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 90 |
1 files changed, 14 insertions, 76 deletions
@@ -1,86 +1,24 @@ -# Copyright © 2012, 2013 Mattias Andrée (m@maandree.se) -# -# Copying and distribution of this file, with or without modification, -# are permitted in any medium without royalty provided the copyright -# notice and this notice are preserved. This file is offered as-is, -# without any warranty. -# -# [GNU All Permissive License] +.POSIX: -PREFIX = /usr -DATA = /share -BIN = /bin -PKGNAME = sysrss -COMMAND = sysrss -LICENSES = $(PREFIX)$(DATA) +CONFIGFILE = config.mk +include $(CONFIGFILE) -BOOK=sysrss -BOOKDIR=info/ +all: + @: - -all: info - - -info: $(BOOK).info.gz -%.info: $(BOOKDIR)%.texinfo - $(MAKEINFO) "$<" -%.info.gz: %.info - gzip -9c < "$<" > "$@" - - -pdf: $(BOOK).pdf -%.pdf: $(BOOKDIR)%.texinfo - texi2pdf "$<" - -pdf.gz: $(BOOK).pdf.gz -%.pdf.gz: %.pdf - gzip -9c < "$<" > "$@" - -pdf.xz: $(BOOK).pdf.xz -%.pdf.xz: %.pdf - xz -e9 < "$<" > "$@" - - -dvi: $(BOOK).dvi -%.dvi: $(BOOKDIR)%.texinfo - $(TEXI2DVI) "$<" - -dvi.gz: $(BOOK).dvi.gz -%.dvi.gz: %.dvi - gzip -9c < "$<" > "$@" - -dvi.xz: $(BOOK).dvi.xz -%.dvi.xz: %.dvi - xz -e9 < "$<" > "$@" - - - -install: install-cmd install-license install-info - -install-cmd: - install -dm755 "$(DESTDIR)$(PREFIX)$(BIN)" - install -m755 sysrss.py "$(DESTDIR)$(PREFIX)$(BIN)/$(COMMAND)" - -install-license: - install -dm755 "$(DESTDIR)$(LICENSES)/$(PKGNAME)" - install -m644 COPYING LICENSE "$(DESTDIR)$(LICENSES)/$(PKGNAME)" - -install-info: $(BOOK).info.gz - install -dm755 "$(DESTDIR)$(PREFIX)$(DATA)/info" - install -m644 "$(BOOK).info.gz" "$(DESTDIR)$(PREFIX)$(DATA)/info/$(PKGNAME).info.gz" +install: + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1" + cp -- sysrss "$(DESTDIR)$(PREFIX)/bin/" + cp -- sysrss.1 "$(DESTDIR)$(MANPREFIX)/man1/" uninstall: - -rm -- "$(DESTDIR)$(PREFIX)$(BIN)/$(COMMAND)" - -rm -- "$(DESTDIR)$(LICENSES)/$(PKGNAME)/COPYING" - -rm -- "$(DESTDIR)$(LICENSES)/$(PKGNAME)/LICENSE" - -rmdir -- "$(DESTDIR)$(LICENSES)/$(PKGNAME)" - -rm -- "$(DESTDIR)$(PREFIX)$(DATA)/info/$(PKGNAME).info.gz" - + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/sysrss" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/sysrss.1" clean: - -rm -r *.{t2d,aux,cp,cps,fn,ky,log,pg,pgs,toc,tp,vr,vrs,op,ops,bak,info,pdf,ps,dvi,gz} 2>/dev/null - -.PHONY: clean uninstall install + -rm -rf -- __pycache__ +.PHONY: all uninstall install clean |