1 include /usr
/share
/dpkg
/pkg-info.mk
5 GITVERSION
:=$(shell git rev-parse HEAD
)
6 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
7 ORIG_SRC_TAR
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM
).orig.
tar.gz
9 DEB
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
)_all.deb
10 DSC
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
).dsc
14 UPSTREAMSRC
=$(UPSTREAM
)-$(UPSTREAMTAG
)
21 $(BUILDDIR
): .any-eslint-js
26 echo
"git clone git://git.proxmox.com/git/pve-eslint.git\\ngit checkout $(GITVERSION)" > $@.tmp
/debian
/SOURCE
37 $(DSC
): $(BUILDDIR
) $(ORIG_SRC_TAR
)
38 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-uc
-us
-d
40 $(ORIG_SRC_TAR
): $(BUILDDIR
)
41 tar czf
$(ORIG_SRC_TAR
) --exclude
="$(BUILDDIR)/debian" $(BUILDDIR
)
45 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-uc
-us
55 rm -rf
$(UPSTREAM
).tmp
$(UPSTREAM
)
56 git clone
-b
$(UPSTREAMTAG
) --depth
1 https
://github.com
/eslint
/eslint
$(UPSTREAM
).tmp
57 rm -rf
$(UPSTREAM
).tmp
/.git
58 find
$(UPSTREAM
).tmp
/ -type f
-name
'.gitignore' -delete
59 mv
$(UPSTREAM
).tmp
$(UPSTREAM
)
61 .PHONY
: vendor-upstream
63 rm -rf
$(UPSTREAMSRC
) src
/lib
/eslint.js
64 $(MAKE
) src
/lib
/eslint.js
67 [ -e src
/lib
/eslint.js
] ||
$(MAKE
) src
/lib
/eslint.js
70 src
/lib
/eslint.js
: $(UPSTREAMSRC
)/build
/eslint.js
71 cp
$(UPSTREAMSRC
)/build
/eslint.js src
/lib
/eslint.js
73 $(UPSTREAMSRC
)/build
/eslint.js
: $(UPSTREAMSRC
)
74 # NOTE: needs npm installed, downloads packages from npm
75 cd
$(UPSTREAMSRC
); npm
install
76 cd
$(UPSTREAMSRC
); npm run build
:webpack
78 $(UPSTREAMSRC
): $(UPSTREAM
) patches
81 rsync
-ra
$(UPSTREAM
)/ $@.tmp
82 cd
$@.tmp
; ln
-s ..
/patches patches
83 cd
$@.tmp
; quilt push
-a
84 cd
$@.tmp
; rm -rf .
pc .
/patches
88 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
90 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com
-- upload
--product devel
--dist $(UPLOAD_DIST
)
97 rm -rf
$(UPSTREAM
)-v
[0-9]*/ *.tmp
/ $(PACKAGE
)-[0-9]*/
98 rm -f
*.deb
*.dsc
*.changes
$(PACKAGE
)*.
tar* *.build
*.buildinfo .any-eslint-js