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:
|
|
|
|
install -m755 bin/dir2point $(PREFIX)/bin/dir2point
|
|
|
|
install -m755 bin/md2point $(PREFIX)/bin/md2point
|
|
|
|
install -m755 bin/point2pdf $(PREFIX)/bin/point2pdf
|
2020-04-29 16:33:09 +02:00
|
|
|
install -m644 md2point.1 $(MANPREFIX)/man1/md2point.1
|
2019-11-09 20:16:32 +01:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f $(PREFIX)/bin/dir2point
|
|
|
|
rm -f $(PREFIX)/bin/md2point
|
|
|
|
rm -f $(PREFIX)/bin/point2pdf
|
2020-04-29 16:33:09 +02:00
|
|
|
rm -f $(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
|