Browse Source

Merged #9 with some additional fixes

Fredrik Svantesson 8 years ago
parent
commit
5319f98840
2 changed files with 6 additions and 0 deletions
  1. 1
    0
      .gitignore
  2. 5
    0
      Makefile

+ 1
- 0
.gitignore View File

@@ -1 +1,2 @@
1 1
 light
2
+light.1.gz

+ 5
- 0
Makefile View File

@@ -6,7 +6,12 @@ CC=gcc
6 6
 CFLAGS=-std=c89 -O2 -pedantic -Wall -I"./include"
7 7
 MANFLAGS=-h -h -v -V
8 8
 
9
+HELP2MAN_VERSION := $(shell help2man --version 2>/dev/null)
10
+
9 11
 all:
12
+ifndef HELP2MAN_VERSION
13
+$(error "help2man is not installed")
14
+endif
10 15
 	$(CC) $(CFLAGS) -g -o light src/helpers.c src/light.c src/main.c
11 16
 exp:
12 17
 	$(CC) $(CFLAGS) -E  src/helpers.c src/light.c