summaryrefslogtreecommitdiff
path: root/pkgthing/pkgthing.mk
blob: 29322b64f65a9804d7e3306103dc9ed553a47ec2 (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
#!/usr/bin/make -f
name = pkgthing
ver = 2.9.0

usage = Usage: make [-C /usr/src] TARGET
email = LukeShu@sbcglobal.net

datadir = /usr/src/local/pkgthing

.PHONY: shorthelp help version
shorthelp:
	# $(name): please specify an action
	# $(usage)
	# 
	# Try `make -C /usr/src help' for more options

help:
	# $(name) $(ver), package thing(y) - THing Is Not GNU (yet?)
	# $(usage)
	# 
	# ...
	# 
	# Mail bug reports and suggestions to <$(email)>

version:
	# $(name) $(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 <$(email)>

#.PHONY: init $(addprefix init-,$(shell echo *.lst))
init:        $(addprefix init-,$(shell echo *.lst))

init-%: %
	# loading `$<'...
	bash $(datadir)/init "$<"