2017-03-17 17:03:24 +01:00
|
|
|
# catpoint - simple presentation software
|
|
|
|
# See LICENSE file for copyright and license details.
|
2015-08-27 23:54:58 +02:00
|
|
|
|
2017-03-17 17:03:24 +01:00
|
|
|
include config.mk
|
2015-08-27 23:54:58 +02:00
|
|
|
|
2017-03-17 17:03:24 +01:00
|
|
|
SRC = catpoint.c
|
|
|
|
OBJ = ${SRC:.c=.o}
|
|
|
|
|
|
|
|
all: options catpoint
|
|
|
|
|
|
|
|
options:
|
|
|
|
@echo catpoint build options:
|
|
|
|
@echo "CFLAGS = ${CFLAGS}"
|
|
|
|
@echo "LDFLAGS = ${LDFLAGS}"
|
|
|
|
@echo "CC = ${CC}"
|
|
|
|
|
|
|
|
config.h:
|
|
|
|
cp config.def.h config.h
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
@echo CC $<
|
|
|
|
@${CC} -c ${CFLAGS} $<
|
|
|
|
|
|
|
|
${OBJ}: config.mk
|
|
|
|
|
|
|
|
catpoint: ${OBJ}
|
|
|
|
@echo CC -o $@
|
|
|
|
@${CC} -o $@ ${OBJ} ${LDFLAGS}
|
2015-08-27 23:54:58 +02:00
|
|
|
|
|
|
|
clean:
|
2017-03-17 17:03:24 +01:00
|
|
|
@echo cleaning
|
|
|
|
@rm -f catpoint ${OBJ} catpoint-${VERSION}.tar.gz
|
|
|
|
|
2017-03-18 12:16:31 +01:00
|
|
|
dist: clean
|
2017-03-17 17:03:24 +01:00
|
|
|
@echo creating dist tarball
|
|
|
|
@mkdir -p catpoint-${VERSION}
|
|
|
|
@cp -R LICENSE Makefile README.md config.mk ${SRC} catpoint-${VERSION}
|
|
|
|
@tar -cf catpoint-${VERSION}.tar catpoint-${VERSION}
|
|
|
|
@gzip catpoint-${VERSION}.tar
|
|
|
|
@rm -rf catpoint-${VERSION}
|
|
|
|
|
|
|
|
install: all
|
|
|
|
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
|
|
|
|
@mkdir -p ${DESTDIR}${PREFIX}/bin
|
|
|
|
@cp -f catpoint ${DESTDIR}${PREFIX}/bin
|
|
|
|
@chmod 755 ${DESTDIR}${PREFIX}/bin/catpoint
|
|
|
|
@#echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
@#mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
@#sed "s/VERSION/${VERSION}/g" < catpoint.1 > ${DESTDIR}${MANPREFIX}/man1/catpoint.1
|
|
|
|
@#chmod 644 ${DESTDIR}${MANPREFIX}/man1/catpoint.1
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
|
|
|
|
@rm -f ${DESTDIR}${PREFIX}/bin/catpoint
|
|
|
|
#@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
#@rm -f ${DESTDIR}${MANPREFIX}/man1/catpoint.1
|
|
|
|
|
|
|
|
.PHONY: all options clean dist install uninstall
|
|
|
|
|