]> git.saurik.com Git - apt.git/blob - cmdline/makefile
Merge branch 'debian/sid' into debian/experimental
[apt.git] / cmdline / makefile
1 # -*- make -*-
2 BASE=..
3 SUBDIR=cmdline
4
5 # Bring in the default rules
6 include ../buildlib/defaults.mak
7
8 # The apt program
9 PROGRAM=apt
10 SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
11 LIB_MAKES = apt-pkg/makefile
12 SOURCE = apt.cc
13 include $(PROGRAM_H)
14
15 # The apt-cache program
16 PROGRAM=apt-cache
17 SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
18 LIB_MAKES = apt-pkg/makefile
19 SOURCE = apt-cache.cc
20 include $(PROGRAM_H)
21
22 # The apt-get program
23 PROGRAM=apt-get
24 SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
25 LIB_MAKES = apt-pkg/makefile
26 SOURCE = apt-get.cc
27 include $(PROGRAM_H)
28
29 # The apt-config program
30 PROGRAM=apt-config
31 SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
32 LIB_MAKES = apt-pkg/makefile
33 SOURCE = apt-config.cc
34 include $(PROGRAM_H)
35
36 # The apt-cdrom program
37 PROGRAM=apt-cdrom
38 SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
39 LIB_MAKES = apt-pkg/makefile
40 SOURCE = apt-cdrom.cc
41 include $(PROGRAM_H)
42
43 # The apt-mark program
44 PROGRAM=apt-mark
45 SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
46 LIB_MAKES = apt-pkg/makefile
47 SOURCE = apt-mark.cc
48 include $(PROGRAM_H)
49
50 # The apt-report-mirror-failure program
51 #SOURCE=apt-report-mirror-failure
52 #TO=$(BIN)
53 #TARGET=program
54 #include $(COPY_H)
55
56 #
57 # the following programs are shipped in apt-utils
58 #
59 APT_DOMAIN:=apt-utils
60
61 # The apt-sortpkgs program
62 PROGRAM=apt-sortpkgs
63 SLIBS = -lapt-pkg $(INTLLIBS)
64 LIB_MAKES = apt-pkg/makefile
65 SOURCE = apt-sortpkgs.cc
66 include $(PROGRAM_H)
67
68 # The apt-extracttemplates program
69 PROGRAM=apt-extracttemplates
70 SLIBS = -lapt-pkg -lapt-inst $(INTLLIBS)
71 LIB_MAKES = apt-pkg/makefile
72 SOURCE = apt-extracttemplates.cc
73 include $(PROGRAM_H)
74
75 # The internal solver acting as an external
76 PROGRAM=apt-internal-solver
77 SLIBS = -lapt-pkg $(INTLLIBS)
78 LIB_MAKES = apt-pkg/makefile
79 SOURCE = apt-internal-solver.cc
80 include $(PROGRAM_H)
81
82 # This just dumps out the state
83 PROGRAM=apt-dump-solver
84 SLIBS = -lapt-pkg $(INTLLIBS)
85 LIB_MAKES = apt-pkg/makefile
86 SOURCE = apt-dump-solver.cc
87 include $(PROGRAM_H)
88
89 # The apt-key program
90 apt-key: apt-key.in
91 sed -e "s#&keyring-filename;#$(shell ../vendor/getinfo keyring-filename)#" \
92 -e "s#&keyring-removed-filename;#$(shell ../vendor/getinfo keyring-removed-filename)#" \
93 -e "s#&keyring-master-filename;#$(shell ../vendor/getinfo keyring-master-filename)#" \
94 -e "s#&keyring-uri;#$(shell ../vendor/getinfo keyring-uri)#" \
95 -e "s#&keyring-package;#$(shell ../vendor/getinfo keyring-package)#" $< > $@
96 chmod 755 $@
97
98 SOURCE=apt-key
99 TO=$(BIN)
100 TARGET=program
101 include $(COPY_H)
102
103 clean: clean/apt-key
104
105 clean/apt-key:
106 rm -f apt-key