]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/package.make
patch::: 1.1.3.jcn2
[lilypond.git] / stepmake / stepmake / package.make
1 # stepmake/Package.make
2
3 package-icon=$(outdir)/$(package)-icon.gif
4
5 deb:
6         $(MAKE) -C $(depth)/debian
7
8 # urg
9 #(cd $(depth)/../debian/$(distname); \
10 #  ln -sf debian DEBIAN; )
11 # su -c 'dpkg-deb -b $(depth)/../debian/$(distname)'
12 # urg, why aren't there any decent manual pages for dpkg or rpm?
13         su -c '(cd $(depth)/../debian; \
14           rm -rf $(distname) $(distname).deb;\
15           tar xz -C $(depth)/../debian -f $(release-dir)/$(distname).tar.gz; \
16           cd $(distname);\
17           dpkg-buildpackage -b; \
18         )'
19
20 # makeflags=$(patsubst %==, %, $(patsubst %----,%,$(MAKEFLAGS:%=--%)))
21 makeflags=$(patsubst %==, %, $(patsubst ----%,%,$($(MAKEFLAGS:%=--%):--unix=)))
22
23 diff:
24         $(PYTHON) $(step-bindir)/package-diff.py --package=$(topdir) $(makeflags)
25
26 release: 
27         $(PYTHON) $(step-bindir)/release.py --package=$(topdir)
28
29 rpm: $(depth)/$(package-icon) dist
30         su -c 'rpm -tb $(depth)/$(outdir)/$(distname).tar.gz'
31
32 update:
33         $(PYTHON) $(step-bindir)/update.py --package=$(topdir) $(makeflags)
34
35 xzip:
36         $(SHELL) $(step-bindir)/package-zip.sh $(topdir) $(prefix:/%=%)
37
38 zip:
39         $(SHELL) $(step-bindir)/package-zip32.sh $(topdir)
40