vm-metapackages/Makefile

39 lines
847 B
Makefile
Raw Normal View History

repo = /home/syntaxerrormmm/Documenti/SysAdmin/repo.sys42.eu
uploadscr = $(repo)/update-ubuntu.sh
bionic_src = $(wildcard bionic/*.control)
xenial_src = $(wildcard xenial/*.control)
trusty_src = $(wildcard trusty/*.control)
bionic_obj = $(bionic_src:.control=.deb)
xenial_obj = $(xenial_src:.control=.deb)
trusty_obj = $(trusty_src:.control=.deb)
all: bionic xenial trusty
clean:
rm -f *.dsc *.changes *.deb *.tar.gz
%.deb: %.control
equivs-build $<
bionic: $(bionic_obj)
xenial: $(xenial_obj)
trusty: $(trusty_obj)
bionic_repo: bionic
reprepro -b $(repo) includedeb bionic *18.04*.deb
xenial_repo: xenial
reprepro -b $(repo) includedeb xenial *16.04*.deb
trusty_repo: trusty
reprepro -b $(repo) includedeb trusty *14.04*.deb
repo: bionic_repo xenial_repo trusty_repo
upload:
bash $(uploadscr)
.PHONY: all clean bionic xenial