forked from cfg2html/cfg2html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (38 loc) · 1.66 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# @(#) $Id: Makefile,v 6.19 2018/03/16 16:04:22 ralph Exp $
# Makefile to create HP-UX software depot, AIX, FreeBSD, SunOS or Linux .DEB and .RPM packages etc.
# -------------------------------------------------------------------------------------------------
# -*- coding: utf-8, LF/Unix -*-
# IMPORTANT: You need an annotated git tag on your local build system. Else the rpm build will fail
# (at least using openSUSE).
product = cfg2html
#TODO:# release = shell (git describe --long) ?? ## 6.33-6-g48d4c01
all:
i=`uname -s`; case $$i in HP-UX) make depot;; Linux) make rpm;; SunOS) echo "Run \"make sunos\"";; FreeBSD|OpenBSD|NetBSD) echo "Run \"make freebsd\"";;*) make help;; esac
help:
@echo "+------------------------------------------+"
@echo "| cfg2html Makefile targets |"
@echo "| ========================= |"
@echo "| HP-UX: \"make depot\" |"
@echo "| Linux: \"make rpm\" |"
@echo "| Linux: \"make deb\" |"
@echo "| SunOS: \"make sunos\" |"
@echo "| FreeBSD|OpenBSD|NetBSD: \"make bsd\" |"
@echo "| AIX: \"make aix-rpm\" |"
@echo "| AIX: \"make aix-dist\" |"
@echo "+------------------------------------------+"
depot:
gmake -C hpux depot
rpm:
make -C linux rpm
deb:
make -C linux deb
clean:
i=`uname -s`; case $$i in HP-UX) gmake -C hpux clean;; Linux) make -C linux clean;; FreeBSD) make -C freebsd clean;;*) make help;; esac
sunos: sunos/cfg2html-SunOS.sh
cd sunos && make install
bsd: bsd/cfg2html-bsd.sh
cd bsd && make install
aix-rpm:
make -C aix rpm
aix-dist:
make -C aix dist