mirror of
https://git.proxmox.com/git/pve-network
synced 2025-04-28 15:15:40 +00:00
separate packaging and source build system
like almost all of our repos do nowadays, modern git can detect such things on rebase so in development stuff should be hopefully not too much affected by this. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
cead0f28af
commit
6029cbb071
21
Makefile
21
Makefile
@ -7,17 +7,16 @@ BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
|
||||
DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||
DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
|
||||
|
||||
all:
|
||||
$(MAKE) -C PVE
|
||||
|
||||
.PHONY: dinstall
|
||||
dinstall: deb
|
||||
dpkg -i $(DEB)
|
||||
|
||||
$(BUILDDIR): PVE debian
|
||||
rm -rf $(BUILDDIR)
|
||||
rsync -a * $(BUILDDIR)
|
||||
echo "git clone git://git.proxmox.com/git/pve-network.git\\ngit checkout $(shell git rev-parse HEAD)" > $(BUILDDIR)/debian/SOURCE
|
||||
$(BUILDDIR): src debian
|
||||
rm -rf $@ $@.tmp
|
||||
cp -a src $@.tmp
|
||||
cp -a debian $@.tmp/
|
||||
echo "git clone git://git.proxmox.com/git/pve-network.git\\ngit checkout $(shell git rev-parse HEAD)" > $@.tmp/debian/SOURCE
|
||||
mv $@.tmp $@
|
||||
|
||||
.PHONY: deb
|
||||
deb: $(DEB)
|
||||
@ -41,14 +40,6 @@ distclean: clean
|
||||
clean:
|
||||
rm -rf *~ *.deb *.changes $(PACKAGE)-[0-9]*/ $(PACKAGE)*.tar* *.build *.buildinfo *.dsc
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
$(MAKE) -C test
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
$(MAKE) -C PVE install
|
||||
|
||||
.PHONY: upload
|
||||
upload: $(DEB)
|
||||
tar cf - $(DEB)|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye
|
||||
|
15
src/Makefile
Normal file
15
src/Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
all:
|
||||
$(MAKE) -C PVE
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(MAKE) -C test $@
|
||||
$(MAKE) -C PVE $@
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
$(MAKE) -C $@
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
$(MAKE) -C PVE $@
|
@ -4,3 +4,5 @@ all:
|
||||
install:
|
||||
make -C Network install
|
||||
make -C API2 install
|
||||
|
||||
clean:
|
@ -13,3 +13,5 @@ test_dns: run_test_dns.pl
|
||||
|
||||
test_subnets: run_test_subnets.pl
|
||||
./run_test_subnets.pl
|
||||
|
||||
clean:
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user