X-Git-Url: http://gitweb/?a=blobdiff_plain;f=Makefile;h=29d6927587da80222df0b248658180928ea05b41;hb=ef11492592836223157333eb33b2ec20b474d661;hp=218a1100ff5ce2ce0ff2ed45d488f1f226a7514e;hpb=f49ee1850c34be14edb099153fec4b8f00d60abd;p=pkgutils-cross.git diff --git a/Makefile b/Makefile index 218a110..29d6927 100644 --- a/Makefile +++ b/Makefile @@ -2,13 +2,25 @@ # Makefile # -all: src/pkgmk src/pkgmk.conf +all: src/pkgmk.conf src/pkgmk pkginfo pkgadd src/pkgmk: - @make -C src + @if grep -e ubuntu /proc/version >/dev/null; then \ + make -C src LDFLAGS="-static -larchive -lz -lacl"; \ + else \ + make -C src; \ + fi + @chmod a+x src/pkgmk + +pkginfo: + @ln -s src/pkgadd pkginfo + +pkgadd: + @ln -s src/pkgadd pkgadd clean: @make -C src clean + @rm -f pkginfo pkgadd distclean: @make -C src distclean