mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-06-14 16:02:52 +00:00
add .gitignore, use better name for build dir
This commit is contained in:
parent
5eabc98447
commit
151acc1f31
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
build
|
||||||
|
*.deb
|
28
Makefile
28
Makefile
@ -34,19 +34,19 @@ install:
|
|||||||
|
|
||||||
.PHONY: deb ${DEB}
|
.PHONY: deb ${DEB}
|
||||||
deb ${DEB}:
|
deb ${DEB}:
|
||||||
rm -rf debian
|
rm -rf build
|
||||||
mkdir debian
|
mkdir build
|
||||||
make DESTDIR=${CURDIR}/debian install
|
make DESTDIR=`pwd`/build install
|
||||||
install -d -m 0755 debian/DEBIAN
|
install -d -m 0755 build/DEBIAN
|
||||||
sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ -e s/@@ARCH@@/${ARCH}/ <control.in >debian/DEBIAN/control
|
sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ -e s/@@ARCH@@/${ARCH}/ <control.in >build/DEBIAN/control
|
||||||
install -D -m 0644 copyright debian/${DOCDIR}/${PACKAGE}/copyright
|
install -D -m 0644 copyright build/${DOCDIR}/${PACKAGE}/copyright
|
||||||
install -m 0644 changelog.Debian debian/${DOCDIR}/${PACKAGE}/
|
install -m 0644 changelog.Debian build/${DOCDIR}/${PACKAGE}/
|
||||||
gzip -9 debian/${DOCDIR}/${PACKAGE}/changelog.Debian
|
gzip -9 build/${DOCDIR}/${PACKAGE}/changelog.Debian
|
||||||
install -m 0644 ChangeLog debian/${DOCDIR}/${PACKAGE}/changelog
|
install -m 0644 ChangeLog build/${DOCDIR}/${PACKAGE}/changelog
|
||||||
gzip -9 debian/${DOCDIR}/${PACKAGE}/changelog
|
gzip -9 build/${DOCDIR}/${PACKAGE}/changelog
|
||||||
dpkg-deb --build debian
|
dpkg-deb --build build
|
||||||
mv debian.deb ${DEB}
|
mv build.deb ${DEB}
|
||||||
#rm -rf debian
|
#rm -rf build
|
||||||
lintian ${DEB}
|
lintian ${DEB}
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
@ -61,7 +61,7 @@ upload: ${DEB}
|
|||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf debian *~ *.deb ${PACKAGE}-*.tar.gz
|
rm -rf build *~ *.deb ${PACKAGE}-*.tar.gz
|
||||||
find . -name '*~' -exec rm {} ';'
|
find . -name '*~' -exec rm {} ';'
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
|
Loading…
Reference in New Issue
Block a user