forked from cfg2html/cfg2html
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (54 loc) · 2.38 KB
/
Makefile
File metadata and controls
68 lines (54 loc) · 2.38 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# @(#) $Id: Makefile,v 6.25 2023/08/31 08:04:58 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 build will fail
# (at least using openSUSE). Maybe a workaround could: git checkout master?
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 Linux;; 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 Linux\" (1) |"
@echo "| Linux: \"make rpm\" (2) |"
@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 "| |"
@echo "| changelog: build CHANGELOG-md |"
@echo "+------------------------------------------+"
@echo ""
@echo "IMPORTANT: You need an annotated git tag on your local build system"
@echo " (1) tries to guess which package to build (RPM or DEB)"
@echo " (2) Jenkins workaround: git checkout master; make rpm ## see issue #155"
@echo ""
depot:
gmake -C hpux depot
Linux:
make -C linux Linux
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
changelog:
# HINT: git config gitchangelog.rc-path /home/ralph/bin/_.gitchangelog.rc
gitchangelog > CHANGELOG.md
git commit -s -m "chg: Updated Changelog (by Makefile), Version: $(shell git describe --long)" CHANGELOG.md
#cat CHANGELOG.md