1 # stepmake/Package.make
3 package-icon=$(outdir)/$(package)-icon.gif
6 $(MAKE) -C $(depth)/debian
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; \
17 dpkg-buildpackage -b; \
20 # makeflags=$(patsubst %==, %, $(patsubst %----,%,$(MAKEFLAGS:%=--%)))
21 makeflags=$(patsubst %==, %, $(patsubst ----%,%,$($(MAKEFLAGS:%=--%):--unix=)))
24 $(PYTHON) $(step-bindir)/package-diff.py --package=$(topdir) $(makeflags)
27 $(PYTHON) $(step-bindir)/release.py --package=$(topdir)
29 rpm: $(depth)/$(package-icon) dist
30 su -c 'rpm -tb $(depth)/$(outdir)/$(distname).tar.gz'
33 $(PYTHON) $(step-bindir)/update.py --package=$(topdir) $(makeflags)
36 $(SHELL) $(step-bindir)/package-zip.sh $(topdir) $(prefix:/%=%)
39 $(SHELL) $(step-bindir)/package-zip32.sh $(topdir)