aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/Makefile b/src/Makefile
index 0106dc7..161376b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -93,19 +93,22 @@ alf.1: alf.rst ver.rst manftr.rst
clean:
rm -rf *.o unalf alfsum *.exe wintmp \
- unalf.html alfsum.html *.aarch64.elf *.com.dbg
+ alf.html unalf.html alfsum.html *.aarch64.elf *.com.dbg
# these are generated files, but they *are* checked into git.
realclean: clean
rm -f unalf.1 alfsum.1 usage.c
install: all
- [ "$(STRIP)" = "yes" ] && strip unalf alfsum || true
+ [ "$(STRIP)" = "yes" ] && strip alf unalf alfsum || true
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MAN1DIR) $(DESTDIR)$(DOCDIR)
+ $(INSTALL_DATA) alf.1 $(DESTDIR)$(MAN1DIR)
$(INSTALL_DATA) unalf.1 $(DESTDIR)$(MAN1DIR)
$(INSTALL_DATA) alfsum.1 $(DESTDIR)$(MAN1DIR)
+ [ "$(GZIP_MAN)" = "yes" ] && $(GZIP) $(DESTDIR)$(MAN1DIR)/alf.1 || true
[ "$(GZIP_MAN)" = "yes" ] && $(GZIP) $(DESTDIR)$(MAN1DIR)/unalf.1 || true
[ "$(GZIP_MAN)" = "yes" ] && $(GZIP) $(DESTDIR)$(MAN1DIR)/alfsum.1 || true
+ $(INSTALL_PROGRAM) alf $(DESTDIR)$(BINDIR)
$(INSTALL_PROGRAM) unalf $(DESTDIR)$(BINDIR)
$(INSTALL_PROGRAM) alfsum $(DESTDIR)$(BINDIR)
cp -r ../README.txt ../LICENSE.txt ../TODO.txt ../doc ../examples $(DESTDIR)$(DOCDIR)
@@ -113,7 +116,10 @@ install: all
crosswin: clean
$(MAKE) CC=~/x-tools/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc
-html: alfsum.html unalf.html
+html: alfsum.html unalf.html alf.html
+
+alf.html: alf.rst
+ rst2html alf.rst > alf.html
alfsum.html: alfsum.rst
rst2html alfsum.rst > alfsum.html
@@ -124,11 +130,11 @@ unalf.html: unalf.rst
windows: crosswin html
rm -rf wintmp ../unalf-$(VERSION)-win64.zip
mkdir -p wintmp/{doc,examples}
- cp unalf.exe alfsum.exe wintmp
+ cp alf.exe unalf.exe alfsum.exe wintmp
cd .. ; for i in README.txt TODO.txt doc/*.txt doc/Arcinfo examples/*.txt; do perl -pe 's,\n,\r\n,;' $$i > src/wintmp/$$i; done
perl -p -e 's,\n,\r\n,;' -e 's,\@VERSION\@,$(VERSION),g;' README_Windows.txt.in > wintmp/README_Windows.txt
cp ../examples/*.alf wintmp/examples
- cp alfsum.html unalf.html wintmp
+ cp alfsum.html unalf.html alf.html wintmp
cd wintmp ; zip -r ../../unalf-$(VERSION)-win64.zip *
windows-upload: windows