Skip to content

Instantly share code, notes, and snippets.

@sortie
Created September 29, 2016 19:55
Show Gist options
  • Select an option

  • Save sortie/a7ed36aceff563364014e8de52fbee5f to your computer and use it in GitHub Desktop.

Select an option

Save sortie/a7ed36aceff563364014e8de52fbee5f to your computer and use it in GitHub Desktop.
diff --git a/utils/Makefile b/utils/Makefile
index 53f10fe..0e0c7d0 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -72,6 +72,9 @@ BINARIES=\
$(BINARIES_EXCEPT_INSTALL) \
xinstall
+MANPAGES=\
+chkblayout.1
+
all: $(BINARIES)
.PHONY: all install clean
@@ -80,6 +83,8 @@ install: all
mkdir -p $(DESTDIR)$(BINDIR)
install $(BINARIES_EXCEPT_INSTALL) $(DESTDIR)$(BINDIR)
install xinstall $(DESTDIR)$(BINDIR)/install
+ mkdir -p $(DESTDIR)$(MANDIR)/man1
+ cp $(MANPAGES) $(DESTDIR)$(MANDIR)/man1
%: %.c
$(CC) -std=gnu11 $(CFLAGS) $(CPPFLAGS) $< -o $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment