summaryrefslogtreecommitdiff
path: root/pkgthing/src/pkgthing.mk.in
diff options
context:
space:
mode:
Diffstat (limited to 'pkgthing/src/pkgthing.mk.in')
-rw-r--r--pkgthing/src/pkgthing.mk.in59
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgthing/src/pkgthing.mk.in b/pkgthing/src/pkgthing.mk.in
new file mode 100644
index 0000000..ae56543
--- /dev/null
+++ b/pkgthing/src/pkgthing.mk.in
@@ -0,0 +1,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 "$<"
+