mirror of
https://git.proxmox.com/git/pve-jslint
synced 2025-08-05 02:41:38 +00:00
cleanup buildsys and add dsc target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
914267a94d
commit
f1626066e2
43
Makefile
43
Makefile
@ -3,47 +3,44 @@ VERSION=1.0
|
|||||||
PACKAGERELEASE=5
|
PACKAGERELEASE=5
|
||||||
|
|
||||||
PKGREL=${VERSION}-${PACKAGERELEASE}
|
PKGREL=${VERSION}-${PACKAGERELEASE}
|
||||||
DEB=${PACKAGE}_${PKGREL}_all.deb
|
|
||||||
GITVERSION:=$(shell git rev-parse HEAD)
|
|
||||||
|
|
||||||
|
DEB=${PACKAGE}_${PKGREL}_all.deb
|
||||||
|
DSC=${PACKAGE}_${PKGREL}.dsc
|
||||||
|
|
||||||
|
GITVERSION:=$(shell git rev-parse HEAD)
|
||||||
BUILDDIR ?= ${PACKAGE}-${VERSION}
|
BUILDDIR ?= ${PACKAGE}-${VERSION}
|
||||||
|
|
||||||
all:
|
all: ${DEB}
|
||||||
|
|
||||||
${BUILDDIR}: debian
|
${BUILDDIR}: src debian
|
||||||
rm -rf ${BUILDDIR}
|
rm -rf ${BUILDDIR}
|
||||||
rsync -a * ${BUILDDIR}
|
rsync -a src/ debian ${BUILDDIR}
|
||||||
echo "git clone git://git.proxmox.com/git/pve-jslint.git\\ngit checkout $(GITVERSION)" > ${BUILDDIR}/debian/SOURCE
|
echo "git clone git://git.proxmox.com/git/pve-jslint.git\\ngit checkout $(GITVERSION)" > ${BUILDDIR}/debian/SOURCE
|
||||||
|
|
||||||
.PHONY: dinstall
|
|
||||||
dinstall: ${DEB}
|
|
||||||
dpkg -i ${DEB}
|
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: ${DEB}
|
deb: ${DEB}
|
||||||
${DEB}: ${BUILDDIR}
|
${DEB}: ${BUILDDIR}
|
||||||
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
||||||
lintian ${DEB}
|
lintian ${DEB}
|
||||||
|
|
||||||
rhinoed_jslint.js: jslint.js rhino.js
|
.PHONY: dsc
|
||||||
cat jslint.js rhino.js >$@.tmp
|
dsc: ${DSC}
|
||||||
mv $@.tmp $@
|
${DSC}: ${BUILDDIR}
|
||||||
|
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
|
||||||
|
lintian ${DSC}
|
||||||
|
|
||||||
install: rhinoed_jslint.js jslint
|
.PHONY: dinstall
|
||||||
install -d -m 0755 ${DESTDIR}/usr/share/${PACKAGE}
|
dinstall: ${DEB}
|
||||||
install -m 0644 rhinoed_jslint.js ${DESTDIR}/usr/share/${PACKAGE}/rhinoed_jslint.js
|
dpkg -i ${DEB}
|
||||||
install -d -m 0755 ${DESTDIR}/usr/bin
|
|
||||||
install -m 0755 jslint ${DESTDIR}/usr/bin
|
|
||||||
|
|
||||||
jslint.js download:
|
.PHONY: download
|
||||||
wget -O jslint.js http://jslint.com/jslint.js
|
src/jslint.js download:
|
||||||
|
wget -O src/jslint.js http://jslint.com/jslint.js
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean clean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
|
||||||
.PHONY: clean
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf *~ ${BUILDDIR} rhinoed_jslint.js *.deb *.changes *.buildinfo
|
rm -rf *~ ${BUILDDIR} rhinoed_jslint.js *.deb *.dsc *.tar.gz *.changes *.buildinfo
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload: ${DEB}
|
upload: ${DEB}
|
||||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -2,6 +2,8 @@ Source: pve-jslint
|
|||||||
Section: devel
|
Section: devel
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Proxmox Support Team <support@proxmox.com>
|
Maintainer: Proxmox Support Team <support@proxmox.com>
|
||||||
|
Build-Depends: debhelper (>= 10~),
|
||||||
|
rsync
|
||||||
Standards-Version: 3.9.8
|
Standards-Version: 3.9.8
|
||||||
|
|
||||||
Package: pve-jslint
|
Package: pve-jslint
|
||||||
|
Loading…
Reference in New Issue
Block a user