Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (40 sloc) 1.31 KB
# cower - a simple AUR downloader
include config.mk
SRC = cower.c
OBJ = ${SRC:.c=.o}
all: cower doc
35:
${MAKE} PMCHECK=-D_HAVE_ALPM_FIND_SATISFIER all
.c.o:
${CC} -c ${CFLAGS} $<
${OBJ}: config.mk
cower: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
doc: cower.1
cower.1: README.pod
pod2man --section=1 --center="Cower Manual" --name="COWER" --release="cower ${VERSION}" $< > $@
install: cower cower.1
install -D -m755 cower ${DESTDIR}${PREFIX}/bin/cower
install -D -m644 cower.1 ${DESTDIR}${MANPREFIX}/man1/cower.1
install -D -m644 bash_completion ${DESTDIR}/etc/bash_completion.d/cower
dist: clean
mkdir cower-${VERSION}
cp Makefile README.pod bash_completion cower.c cower-${VERSION}
sed "s/^VERSION = .*/VERSION = ${VERSION}/" config.mk > cower-${VERSION}/config.mk
tar cf - cower-${VERSION} | gzip -9 > cower-${VERSION}.tar.gz
rm -rf cower-${VERSION}
strip: cower
strip --strip-unneeded cower
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
rm -f ${DESTDIR}${PREFIX}/bin/cower
@echo removing man page from ${DESTDIR}${PREFIX}/man1/cower.1
rm -f ${DESTDIR}/${PREFIX}/man1/cower.1
@echo removing bash completion
rm -f ${DESTDIR}/etc/bash_completion.d/cower
cscope: cscope.out
cscope.out:
cscope -b
clean:
rm -f *.o cower cower.1 cscope.out
.PHONY: all clean dist doc install uninstall
Jump to Line
Something went wrong with that request. Please try again.