diff options
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fa27701 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +#.POSIX: +.PHONY: all clean debian freebsd +.SUFFIXES: .pkg .list + +all: debian freebsd + +.pkg.list: packages.h + @echo "==> Generating list file $@" + ./packages.sh `echo "$<" | cut -d . -f 1` | sort | uniq > "$@" || rm -f "$@" + +debian: debian.control +debian.control: debian.list + +freebsd: freebsd.makefile +freebsd.makefile: freebsd.list freebsd.ports +freebsd.ports: freebsd.list + @echo "==> Generating $@" + ./freebsd.ports.sh freebsd.list > "$@" || rm -f "$@" + +clean: + rm -f *.control *.makefile *.ports *.list |