2020-04-29 16:15:34 +02:00
|
|
|
# See LICENSE for license details.
|
2020-04-29 16:33:09 +02:00
|
|
|
|
|
|
|
include config.mk
|
|
|
|
|
|
|
|
all: options bin/md2point
|
|
|
|
|
|
|
|
options:
|
|
|
|
@echo pointtools build options:
|
|
|
|
@echo "CFLAGS = ${CFLAGS}"
|
|
|
|
@echo "LDFLAGS = ${LDFLAGS}"
|
|
|
|
@echo "CC = ${CC}"
|
2019-11-09 20:16:32 +01:00
|
|
|
|
2020-04-29 15:59:19 +02:00
|
|
|
bin/md2point: md2point.o
|
|
|
|
${CC} -o $@ md2point.o ${LDFLAGS}
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
${CC} -c ${CFLAGS} $<
|
|
|
|
|
2019-11-09 20:16:32 +01:00
|
|
|
install:
|
2020-04-29 18:20:10 +02:00
|
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
|
|
install -m 755 bin/dir2point $(DESTDIR)$(PREFIX)/bin/dir2point
|
|
|
|
install -m 755 bin/md2point $(DESTDIR)$(PREFIX)/bin/md2point
|
|
|
|
install -m 755 bin/point2pdf $(DESTDIR)$(PREFIX)/bin/point2pdf
|
2021-06-13 14:41:14 +02:00
|
|
|
install -m 755 bin/pptx2md $(DESTDIR)$(PREFIX)/bin/pptx2md
|
2020-04-29 18:20:10 +02:00
|
|
|
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
|
|
|
install -m 644 md2point.1 $(DESTDIR)$(MANPREFIX)/man1/md2point.1
|
2019-11-09 20:16:32 +01:00
|
|
|
|
|
|
|
uninstall:
|
2020-04-29 18:20:10 +02:00
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/dir2point
|
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/md2point
|
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/point2pdf
|
|
|
|
rm -f $(DESTDIR)$(MANPREFIX)/man1/md2point.1
|
2020-04-29 15:59:19 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f bin/md2point
|
|
|
|
rm -f md2point.o
|
|
|
|
|
2020-04-29 16:33:09 +02:00
|
|
|
.PHONY: all options install uninstall clean
|