2018-07-05 23:46:45 +02:00
|
|
|
repo = /home/syntaxerrormmm/Documenti/SysAdmin/repo.sys42.eu
|
|
|
|
uploadscr = $(repo)/update-ubuntu.sh
|
2018-07-01 16:49:12 +02:00
|
|
|
|
2018-07-05 23:46:45 +02:00
|
|
|
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
|
2018-07-01 16:49:12 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.dsc *.changes *.deb *.tar.gz
|
|
|
|
|
|
|
|
%.deb: %.control
|
2018-07-05 23:46:45 +02:00
|
|
|
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)
|
2018-07-01 16:49:12 +02:00
|
|
|
|
2018-07-05 23:46:45 +02:00
|
|
|
.PHONY: all clean bionic xenial
|