pm

barely a pack manager
git clone git://z3bra.org/pm
Log | Files | Refs | README | LICENSE

commit 249db914430a74a809ef89a9fee35f745295bdf1
parent 974ebfe2ef64157720908a31dae3b1391826f269
Author: z3bra <willyatmailoodotorg>
Date:   Tue Dec 22 14:07:55 2015

Improve makefile and add config.mk

Diffstat:
 config.mk |  8 ++++++++
 makefile  | 17 +++++++++++------
 2 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/config.mk b/config.mk @@ -0,0 +1,8 @@ +CC = cc +LD = $(CC) + +PREFIX = /usr/local +MANPREFIX = $(PREFIX)/man + +CFLAGS = -Wall +LDFLAGS = -larchive diff --git a/makefile b/makefile @@ -1,10 +1,15 @@ -CC = cc -LD = $(CC) +include config.mk -CFLAGS = -Wall -LDFLAGS = -larchive +BIN = pack -all: pack +all: $(BIN) clean: - rm -f pack- \ No newline at end of file + rm -f $(BIN) + +install: $(BIN) + cp $(BIN) $(DESTDIR)$(PREFIX)/bin/$(BIN) + chmod 755 $(DESTDIR)$(PREFIX)/bin/$(BIN) + +uninstall: $(BIN) + rm $(DESTDIR)$(PREFIX)/bin/$(BIN)