blob: ae56543574537b3b95a2c74911b5fb9a7f0378af (
plain)
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
|
#!/usr/bin/make -f
_pkg_name = pkgthing # name of the program, duh
_pkg_ver = @ver@ # version number
# Copyright (C) 2009 Luke Shumaker
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
#for use in messages
_pkg_usage = Usage: make [-C /usr/src] TARGET
_pkg_email = LukeShu@sbcglobal.net
_pkg_libexecdir = @libexecdir@/$(_pkg_name) # the location of helper-scripts
_pkg_update = update # the make target to update package lists
.PHONY: shorthelp help version
shorthelp:
# $(_pkg_name): please specify an action
# $(_pkg_usage)
#
# Try `make -C /usr/src help' for more options
help:
# $(_pkg_name) $(_pkg_ver), package thing(y) - THing Is Not GNU (Yet?)
# $(_pkg_usage)
#
# ...
#
# Mail bug reports and suggestions to <$(_pkg_email)>
version:
# $(_pkg_name) $(_pkg_ver)
#
# Copyright (C) 2009 Luke Shumaker, Inc.
# Licence GPLv2+: GNU GPL version 2 or later
# <http://www.gnu.org/licenses/gpl.html>.
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.
#
# Originally written by Luke Shumaker <$(_pkg_email)>
#.PHONY: $(_pkg_update) $(addprefix $(_pkg_update)-,$(shell echo *.lst))
$(_pkg_update): $(addprefix $(_pkg_update)-,$(shell echo *.lst))
$(_pkg_update)-%: %
# loading `$<'...
bash $(_pkg_libexecdir)/init "$<"
|