diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 18 insertions, 10 deletions
@@ -1,3 +1,5 @@ +# Progress Linux metapackages + # Copyright (C) 2010-2021 Daniel Baumann <daniel.baumann@progress-linux.org> # # SPDX-License-Identifier: GPL-3.0+ @@ -13,7 +15,7 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# along with this program. If not, see <https://www.gnu.org/licenses/>. SHELL := sh -e @@ -21,11 +23,17 @@ PROJECT := progress-linux-metapackages all: build -clean: - @# empty +clean: clean-man -build: - @# empty +clean-man: + # clean man + $(MAKE) -C man clean + +build: build-man + +build-man: + # build man + $(MAKE) -C man build test: @# empty @@ -38,13 +46,13 @@ install-doc: cp *.txt $(DESTDIR)/usr/share/doc/$(PROJECT) install-man: - # install manpages + # install man for SECTION in $$(seq 1 8); \ do \ - if ls manpages/*.$${SECTION} > /dev/null 2>&1; \ + if ls man/*.$${SECTION} > /dev/null 2>&1; \ then \ mkdir -p $(DESTDIR)/usr/share/man/man$${SECTION}; \ - cp manpages/*.$${SECTION} $(DESTDIR)/usr/share/man/man$${SECTION}; \ + cp man/*.$${SECTION} $(DESTDIR)/usr/share/man/man$${SECTION}; \ fi; \ done @@ -55,10 +63,10 @@ uninstall-doc: rm -rf $(DESTDIR)/usr/share/doc/$(PROJECT) uninstall-man: - # uninstall manpages + # uninstall man for SECTION in $$(seq 1 8); \ do \ - for FILE in manpages/*.$${SECTION}; \ + for FILE in man/*.$${SECTION}; \ do \ rm -f $(DESTDIR)/usr/share/man/man$${SECTION}/$$(basename $${FILE}); \ done; \ |