+branch/ubiquity

« back to all changes in this revision

Viewing changes to d-i/Makefile

* Reorganise oem-config to have a reasonable frontend/backend separation,
  thereby allowing for a future KDE port. This involved updating much of
  the core to look more like ubiquity (since ubiquity's core was an
  evolution of oem-config's), and a new UI using a single window/notebook
  rather than a succession of dialogs.
* Casualties of this work include the whole base-config-like menu
  structure and the include/exclude mechanism. The menu structure made it
  difficult to avoid spawning a new dialog for each step, which was a poor
  UI; I don't believe the include/exclude mechanism was heavily used, but
  contact me if you were relying on it and it may be possible to restore
  it in a new form.
* I haven't yet ported the new i18n infrastructure from ubiquity, so the
  oem-config UI will be untranslated.
* Like ubiquity, we now incorporate source for all d-i components we use
  under d-i/source/ and include them directly in our binary package,
  reducing the number of complex interdependencies with d-i packages.
  'debian/rules update' can be used to do automatic updates of these
  copied source packages.
* Remove some leftover code that dealt with restoring the inittab, as we
  don't do the temporary inittab thing any more.
* Fix kbd-chooser wrapper script to actually install the selected keymap
  (though only for the console at present).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
unexport DH_OPTIONS
 
2
 
 
3
APTDIR := apt
 
4
LISTDIR := lists
 
5
SOURCEDIR := source
 
6
 
 
7
ifndef DEB_HOST_ARCH
 
8
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
9
endif
 
10
 
 
11
PACKAGES := $(shell cat $(LISTDIR)/any)
 
12
ifneq (,$(wildcard $(LISTDIR)/$(DEB_HOST_ARCH)))
 
13
PACKAGES += $(shell cat $(LISTDIR)/$(DEB_HOST_ARCH))
 
14
endif
 
15
 
 
16
update:
 
17
        ./get-sources update
 
18
        ./get-sources $(shell sort -u $(LISTDIR)/*)
 
19
        ./update-control
 
20
        ./update-changelog
 
21
 
 
22
maintainer-clean:
 
23
        rm -rf $(SOURCEDIR)
 
24
 
 
25
build:
 
26
        set -e; for package in $(PACKAGES); do \
 
27
                if [ -d "$(SOURCEDIR)/$$package" ]; then \
 
28
                        (cd "$(SOURCEDIR)/$$package" && debian/rules build); \
 
29
                fi; \
 
30
        done
 
31
 
 
32
clean:
 
33
        rm -rf $(APTDIR)
 
34
        for dir in $(SOURCEDIR)/*; do \
 
35
                if [ -d "$$dir" ]; then \
 
36
                        (cd "$$dir" && debian/rules clean); \
 
37
                fi; \
 
38
        done
 
39
        rm -f $(SOURCEDIR)/*.deb $(SOURCEDIR)/*.udeb
 
40
        rm -f manifest.old
 
41
        rm -rf udeb-control templates
 
42
 
 
43
install:
 
44
        set -e; for package in $(PACKAGES); do \
 
45
                if [ -d "$(SOURCEDIR)/$$package" ]; then \
 
46
                        (export NO_PKG_MANGLE=1; \
 
47
                         cd "$(SOURCEDIR)/$$package" && \
 
48
                         debian/rules binary && \
 
49
                         rm -rf debian/*/DEBIAN); \
 
50
                fi; \
 
51
        done
 
52
        rm -rf udeb-control templates
 
53
        mkdir -p udeb-control
 
54
        set -e; for udeb in $(SOURCEDIR)/*.udeb; do \
 
55
                if [ -f "$$udeb" ]; then \
 
56
                        name="$$(basename "$$udeb" .udeb)"; \
 
57
                        dpkg-deb -e "$$udeb" "udeb-control/$$name"; \
 
58
                        if [ -f "udeb-control/$$name/templates" ]; then \
 
59
                                sed -n '/./,$$p' "udeb-control/$$name/templates" | \
 
60
                                        grep -iv '^indices.*:' >> templates; \
 
61
                                echo >> templates; \
 
62
                        fi; \
 
63
                fi; \
 
64
        done
 
65
 
 
66
.PHONY: update build clean install