all:

DESTDIR=
VARLIBDIR=$(DESTDIR)/var/lib/proxmox-installer
PERL5DIR=$(DESTDIR)/usr/share/perl5/Proxmox

#PERL_MODULES=$(shell git ls-files . | grep '.pm$')
PERL_MODULES=\
    Install.pm \
    Install/Config.pm \
    Install/ISOEnv.pm \
    Install/RunEnv.pm \
    Install/StorageConfig.pm \
    Log.pm \
    Sys.pm \
    Sys/Block.pm \
    Sys/Command.pm \
    Sys/File.pm \
    Sys/Net.pm \
    Sys/Udev.pm \
    Sys/ZFS.pm \
    UI.pm \
    UI/Base.pm \
    UI/Gtk3.pm \
    UI/StdIO.pm \

.PHONY: install
install: $(PERL_MODULES)
	for f in $(PERL_MODULES); \
	    do install -D -m 644 "$$f" "$(PERL5DIR)/$$f"; \
	done

.PHONY: clean
clean:
