#!/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 . #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 # . # 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 "$<"