forked from cfg2html/cfg2html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (35 loc) · 1.43 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
# @(#) $Id: Makefile,v 6.15 2014/07/25 12:40:14 ralph Exp $
# Makefile to create HP-UX software depot or Linux .DEB and .RPM packages
# -------------------------------------------------------------------------
# vim:ts=8:sw=4:sts=4 -*- coding: utf-8 -*-
product = cfg2html
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 |"
@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