X-Git-Url: http://gitweb/?a=blobdiff_plain;f=Makefile;h=29d6927587da80222df0b248658180928ea05b41;hb=68997c6f66cf9e7946f40e7a4189c7406383c087;hp=4d8680e6c0c98ac1c490bf9d024f93538532d432;hpb=e3b423ef462f060f6d6e72de70a42cb6b0a06efc;p=pkgutils-cross.git diff --git a/Makefile b/Makefile index 4d8680e..29d6927 100644 --- a/Makefile +++ b/Makefile @@ -2,14 +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