summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 19 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 329b97b..6f48ad8 100644
--- a/Makefile
+++ b/Makefile
@@ -3,10 +3,10 @@
include config.mk
NAME = sfeed
-SRC = sfeed.c sfeed_plain.c sfeed_html.c sfeed_opml_config.c
+SRC = sfeed.c sfeed_plain.c sfeed_html.c sfeed_opml_import.c
OBJ = ${SRC:.c=.o}
-all: options sfeed sfeed_plain sfeed_html sfeed_opml_config
+all: options sfeed sfeed_plain sfeed_html sfeed_opml_import
options:
@echo ${NAME} build options:
@@ -24,9 +24,9 @@ sfeed: ${OBJ}
@echo CC -o $@
@${CC} -o $@ sfeed.c ${LDFLAGS} ${LIBEXPAT}
-sfeed_opml_config: sfeed_opml_config.o
+sfeed_opml_import: sfeed_opml_import.o
@echo CC -o $@
- @${CC} -o $@ sfeed_opml_config.o ${LDFLAGS} ${LIBEXPAT}
+ @${CC} -o $@ sfeed_opml_import.o ${LDFLAGS} ${LIBEXPAT}
sfeed_plain: sfeed_plain.o
@echo CC -o $@
@@ -38,15 +38,15 @@ sfeed_html: sfeed_html.o
clean:
@echo cleaning
- @rm -f sfeed sfeed_plain sfeed_html sfeed_opml_config ${OBJ} ${NAME}-${VERSION}.tar.gz
+ @rm -f sfeed sfeed_plain sfeed_html sfeed_opml_import ${OBJ} ${NAME}-${VERSION}.tar.gz
dist: clean
@echo creating dist tarball
@mkdir -p ${NAME}-${VERSION}
@cp -R LICENSE Makefile README config.mk \
TODO CREDITS sfeedrc.example ${SRC} common.c sfeed_update \
- sfeed.1 sfeed_update.1 sfeed_plain.1 sfeed_html.1 sfeed_opml_config.1 \
- ${NAME}-${VERSION}
+ sfeed.1 sfeed_update.1 sfeed_plain.1 sfeed_html.1 sfeed_opml_import.1 \
+ sfeed_opml_export.1 ${NAME}-${VERSION}
@tar -cf ${NAME}-${VERSION}.tar ${NAME}-${VERSION}
@gzip ${NAME}-${VERSION}.tar
@rm -rf ${NAME}-${VERSION}
@@ -54,13 +54,14 @@ dist: clean
install: all
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
@mkdir -p ${DESTDIR}${PREFIX}/bin
- @cp -f sfeed sfeed_html sfeed_plain sfeed_update sfeed_opml_config \
- ${DESTDIR}${PREFIX}/bin
+ @cp -f sfeed sfeed_html sfeed_plain sfeed_update sfeed_opml_import \
+ sfeed_opml_export ${DESTDIR}${PREFIX}/bin
@chmod 755 ${DESTDIR}${PREFIX}/bin/sfeed \
${DESTDIR}${PREFIX}/bin/sfeed_html \
${DESTDIR}${PREFIX}/bin/sfeed_plain \
${DESTDIR}${PREFIX}/bin/sfeed_update \
- ${DESTDIR}${PREFIX}/bin/sfeed_opml_config
+ ${DESTDIR}${PREFIX}/bin/sfeed_opml_import \
+ ${DESTDIR}${PREFIX}/bin/sfeed_opml_export
@mkdir -p ${DESTDIR}${PREFIX}/share/sfeed
@cp -f sfeedrc.example ${DESTDIR}${PREFIX}/share/${NAME}
@echo installing manual pages to ${DESTDIR}${MANPREFIX}/man1
@@ -69,12 +70,14 @@ install: all
@sed "s/VERSION/${VERSION}/g" < sfeed_update.1 > ${DESTDIR}${MANPREFIX}/man1/sfeed_update.1
@sed "s/VERSION/${VERSION}/g" < sfeed_plain.1 > ${DESTDIR}${MANPREFIX}/man1/sfeed_plain.1
@sed "s/VERSION/${VERSION}/g" < sfeed_html.1 > ${DESTDIR}${MANPREFIX}/man1/sfeed_html.1
- @sed "s/VERSION/${VERSION}/g" < sfeed_opml_config.1 > ${DESTDIR}${MANPREFIX}/man1/sfeed_opml_config.1
+ @sed "s/VERSION/${VERSION}/g" < sfeed_opml_import.1 > ${DESTDIR}${MANPREFIX}/man1/sfeed_opml_import.1
+ @sed "s/VERSION/${VERSION}/g" < sfeed_opml_export.1 > ${DESTDIR}${MANPREFIX}/man1/sfeed_opml_export.1
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/sfeed.1 \
${DESTDIR}${MANPREFIX}/man1/sfeed_update.1 \
${DESTDIR}${MANPREFIX}/man1/sfeed_plain.1 \
${DESTDIR}${MANPREFIX}/man1/sfeed_html.1 \
- ${DESTDIR}${MANPREFIX}/man1/sfeed_opml_config.1
+ ${DESTDIR}${MANPREFIX}/man1/sfeed_opml_import.1 \
+ ${DESTDIR}${MANPREFIX}/man1/sfeed_opml_export.1
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
@@ -82,7 +85,8 @@ uninstall:
${DESTDIR}${PREFIX}/bin/sfeed_html \
${DESTDIR}${PREFIX}/bin/sfeed_plain \
${DESTDIR}${PREFIX}/bin/sfeed_update \
- ${DESTDIR}${PREFIX}/bin/sfeed_opml_config \
+ ${DESTDIR}${PREFIX}/bin/sfeed_opml_import \
+ ${DESTDIR}${PREFIX}/bin/sfeed_opml_export \
${DESTDIR}${PREFIX}/share/${NAME}/sfeedrc.example
@-rmdir ${DESTDIR}${PREFIX}/share/${NAME}
@echo removing manual pages from ${DESTDIR}${MANPREFIX}/man1
@@ -90,6 +94,7 @@ uninstall:
${DESTDIR}${MANPREFIX}/man1/sfeed_update.1 \
${DESTDIR}${MANPREFIX}/man1/sfeed_plain.1 \
${DESTDIR}${MANPREFIX}/man1/sfeed_html.1 \
- ${DESTDIR}${MANPREFIX}/man1/sfeed_opml_config.1
+ ${DESTDIR}${MANPREFIX}/man1/sfeed_opml_import.1 \
+ ${DESTDIR}${MANPREFIX}/man1/sfeed_opml_export.1
.PHONY: all options clean dist install uninstall