diff options
author | Samuel Lidén Borell <samuel@kodafritt.se> | 2014-04-11 22:39:56 +0200 |
---|---|---|
committer | Samuel Lidén Borell <samuel@kodafritt.se> | 2014-04-11 22:39:56 +0200 |
commit | 313fd3a3653795e983e583dcbf0aa1c9867f61c4 (patch) | |
tree | a7feddf8899e45a36e499c5ffed70b752fbb61f9 /doc/Makefile | |
parent | 7bd491c7a8f70e76e22c499b675d33eced1a4b7a (diff) | |
download | fribid-313fd3a3653795e983e583dcbf0aa1c9867f61c4.tar.gz fribid-313fd3a3653795e983e583dcbf0aa1c9867f61c4.tar.bz2 fribid-313fd3a3653795e983e583dcbf0aa1c9867f61c4.zip |
Improve the test scripts and install them under <docdir>/fribid/examples
Diffstat (limited to 'doc/Makefile')
-rw-r--r-- | doc/Makefile | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/doc/Makefile b/doc/Makefile index 3e40878..84e7220 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,5 +1,5 @@ # -# Copyright (c) 2010 Samuel Lidén Borell <samuel@kodafritt.se> +# Copyright (c) 2010-2014 Samuel Lidén Borell <samuel@kodafritt.se> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -22,6 +22,7 @@ MANDIR=`../configure --internal--get-define=MANDIR` +DOCDIR=`../configure --internal--get-define=DOCDIR` LANGUAGES=sv @@ -29,18 +30,35 @@ all: clean: install: all + # Man page install -d $(DESTDIR)$(MANDIR)/man7 gzip -n -c9 fribid.7 > $(DESTDIR)$(MANDIR)/man7/fribid.7.gz + # Localization for lang in $(LANGUAGES); do \ install -d $(DESTDIR)$(MANDIR)/$$lang/man7 && \ gzip -n -c9 fribid.$$lang.7 > $(DESTDIR)$(MANDIR)/$$lang/man7/fribid.7.gz || exit 1; \ done + # Test scripts + install -d $(DOCDIR)/fribid + install -d $(DOCDIR)/fribid/examples + install -m 644 examples/README $(DESTDIR)$(DOCDIR)/fribid/examples/ + install -m 644 examples/README.sv $(DESTDIR)$(DOCDIR)/fribid/examples/ + install -m 644 examples/common.sh $(DESTDIR)$(DOCDIR)/fribid/examples/ + install -m 755 examples/sign.sh $(DESTDIR)$(DOCDIR)/fribid/examples/ + install -m 755 examples/reqcert.sh $(DESTDIR)$(DOCDIR)/fribid/examples/ uninstall: rm -f $(DESTDIR)$(MANDIR)/man7/fribid.7.gz for lang in $(LANGUAGES); do \ rm -f $(DESTDIR)$(MANDIR)/$$lang/man7/fribid.7.gz || exit 1; \ done + rm -f $(DESTDIR)$(DOCDIR)/fribid/examples/README + rm -f $(DESTDIR)$(DOCDIR)/fribid/examples/README.sv + rm -f $(DESTDIR)$(DOCDIR)/fribid/examples/common.sh + rm -f $(DESTDIR)$(DOCDIR)/fribid/examples/sign.sh + rm -f $(DESTDIR)$(DOCDIR)/fribid/examples/reqcert.sh + [ ! -d $(DESTDIR)$(DOCDIR)/fribid/examples ] || rmdir $(DESTDIR)$(DOCDIR)/fribid/examples + [ ! -d $(DESTDIR)$(DOCDIR)/fribid ] || rmdir $(DESTDIR)$(DOCDIR)/fribid .PHONY: all clean install uninstall |