diff options
author | Justin Davis <jrcd83@gmail.com> | 2011-09-20 20:10:49 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2011-09-20 20:15:28 +0200 |
commit | 9d37bd99729f8b95a237f994d0c4566e566135a8 (patch) | |
tree | aaee9c90dad4d9112bca6883fc5577503fe93962 /Makefile | |
parent | fed43dfa750961f3380594b5919a0d6b779b847a (diff) | |
download | genpkg-9d37bd99729f8b95a237f994d0c4566e566135a8.tar.gz genpkg-9d37bd99729f8b95a237f994d0c4566e566135a8.tar.xz |
Begin restructuring. Creates Makefile, etc.
bin/macros were moved to bin/metas. perl-cpan renamed to simply perl.
Supporting scripts for perl-cpan moved to bin/metas/perl.d. No longer
use the webpage to look up dists, we maintaing our own simple list
of CPAN distributions. Unlike before, scripts in metas/ generate the
data file and not the file parsed by pbjparse.awk.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d5a0b19 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +TWEAKS = $(PWD)/tweaks +PKGS = $(PWD)/pkg +BIN = $(PWD)/bin +PKGVAR = $(PWD)/var + +.PHONY: checkpkgarg package tweakmeta + +package: $(PKGS)/$(PKG)/PKGBUILD +# cd "$(PKGS)/$(PKG)"; makepkg --clean + +$(PKGS)/$(PKG)/PKGBUILD: tweakmeta + +tweakmeta: $(PKGS)/$(PKG)/PKGMETA + +$(PKGS)/$(PKG)/PKGMETA: checkpkgarg + @rm -rf tmp + @mkdir tmp + @cd tmp; \ + PATH="$$PATH:$(BIN)" METABIN="$(BIN)/metas" PKGVAR="$(PKGVAR)" \ + $(BIN)/makepkgmeta $(PKG) >PKGMETA + @rm -rf "$(PKGS)/$(PKG)" + @mv tmp "$(PKGS)/$(PKG)" + @echo 'Created $@.' + +checkpkgarg: +.ifndef PKG + @echo 'error: Specify the package name in the PKG variable.' 1>&2 + @false +.endif |