dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit d61fa226b7e8abc982324006e4739b813a1861c3
parent a8226753cf434cd3fc42c33711876cc5f138262a
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 18 Jul 2019 09:08:05 +0200

Add makefile for building and installing par

Diffstat:
M.config/htop/htoprc | 2+-
A.local/lib/par/Makefile | 34++++++++++++++++++++++++++++++++++
2 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/.config/htop/htoprc b/.config/htop/htoprc @@ -12,7 +12,7 @@ show_program_path=1 highlight_base_name=0 highlight_megabytes=1 highlight_threads=0 -tree_view=0 +tree_view=1 header_margin=1 detailed_cpu_time=0 cpu_count_from_zero=0 diff --git a/.local/lib/par/Makefile b/.local/lib/par/Makefile @@ -0,0 +1,34 @@ +VERSION = 152 + +PREFIX ?= /usr/local +MANPREFIX ?= $(PREFIX)/share/man +STRIP ?= strip +INSTALL ?= install + +BIN = Par$(VERSION)/par + +default: $(BIN) + +install: Par$(VERSION)/par + $(INSTALL) -m 0755 -d $(DESTDIR)$(PREFIX)/bin + $(INSTALL) -m 0755 $(BIN) $(PREFIX)/bin + $(INSTALL) -m 0755 -d $(DESTDIR)$(MANPREFIX)/man1 + $(INSTALL) -m 0644 $(BIN).1 $(MANPREFIX)/man1 + +uninstall: + $(RM) $(DESTDIR)$(PREFIX)/bin/$(BIN) + $(RM) $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1 + +$(BIN): + make -C Par$(VERSION) -f protoMakefile CC="cc -c" LINK1="cc" LINK2="-o" RM="rm" JUNK="" $* + +Par$(VERSION)/par.c: Par$(VERSION).tar.gz + tar xvfz $< + +Par$(VERSION).tar.gz: + curl -OL http://www.nicemice.net/par/$@ + +clean: + $(RM) Par$(VERSION)/*.o + +.PHONY: clean default install uninstall