Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 1.5
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (50 sloc) 1.809 kb
# burp - seamless AUR uploading
include config.mk
SRC = burp.c cookies.c conf.c curl.c llist.c util.c
OBJ = ${SRC:.c=.o}
all: options burp doc
options:
@echo burp build options:
@echo "PREFIX = ${PREFIX}"
@echo "MANPREFIX = ${MANPREFIX}"
@echo "CC = ${CC}"
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
.c.o:
@printf " %-8s %s\n" CC $@
@${CC} -c ${CFLAGS} $<
${OBJ}: config.mk
burp: ${OBJ}
@printf " %-8s %s\n" LD $@
@${CC} -o $@ ${OBJ} ${LDFLAGS}
doc: burp.1
burp.1: README.pod
@printf " %-8s %s\n" DOC burp.1
@pod2man --section=1 --center="Burp Manual" --name="BURP" --release="burp ${VERSION}" README.pod > burp.1
dist: clean
@mkdir -p burp-${VERSION}
@cp -R ${SRC} *.h README.pod Makefile bash_completion burp-${VERSION}
@sed "s/^VERSION.*/VERSION = ${VERSION}/g" < config.mk > burp-${VERSION}/config.mk
@printf " %-8s %s\n" TAR burp-${VERSION}.tar
@tar -cf burp-${VERSION}.tar burp-${VERSION}
@printf " %-8s %s\n" GZIP burp-${VERSION}.tar.gz
@gzip burp-${VERSION}.tar
@rm -rf burp-${VERSION}
clean:
@printf " %-8s %s\n" CLEAN "*.o burp burp.1"
@rm -f *.o burp burp.1
install: burp doc
@printf " %-8s %s\n" INSTALL burp
@install -D -m755 burp ${DESTDIR}${PREFIX}/bin/burp
@printf " %-8s %s\n" INSTALL bash_completion
@install -D -m644 bash_completion ${DESTDIR}/etc/bash_completion.d/burp
@printf " %-8s %s\n" INSTALL burp.1
@install -D -m644 burp.1 ${DESTDIR}${MANPREFIX}/man1/burp.1
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
@rm -f ${DESTDIR}${PREFIX}/bin/burp
@echo removing man page from ${DESTDIR}${MANPREFIX}/man1
@rm -f ${DESTDIR}${MANPREFIX}/man1/burp.1
@echo removing bash completion
@rm -f ${DESTDIR}/etc/bash_completion.d/burp
.PHONY: all doc clean install options uninstall
Jump to Line
Something went wrong with that request. Please try again.