pointtools/Makefile

39 lines
975 B
Makefile
Raw Normal View History

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}"
bin/md2point: md2point.o
${CC} -o $@ md2point.o ${LDFLAGS}
.c.o:
${CC} -c ${CFLAGS} $<
install:
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
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
install -m 644 md2point.1 $(DESTDIR)$(MANPREFIX)/man1/md2point.1
uninstall:
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
clean:
rm -f bin/md2point
rm -f md2point.o
2020-04-29 16:33:09 +02:00
.PHONY: all options install uninstall clean